Aggro "Radius"-like script help

Post » Thu Oct 22, 2009 4:54 pm

Aggro radius doesn't work on my computer. Dunno why, gonna leave it at that.

So I'm trying to make a script that will essentially allow me to edit the distance a player (or actor) need to get within for an aggressor (a deathclaw in this case) before the deathclaw will engage the actor/player...

Basically, I have a camp setup for a mod I'm working on. I want the deathclaws and fire geckos to be close to the borders of the camp (much closer than the geck would allow) but WITHOUT attacking the guards, but still attacking the player if he gets too close. (Basically to give the player the illusion that the camp is basically screwed, without the monsters actually "screwing" it) hehe.

So here's what I've got so far:

;This script is used to tell an npc that if the player gets within a certain range to attack

scn VaultXAggroRange

begin GameMode

Actor.GetDistance.Player

if Player > x ;distance from actor with script (this is what I need help with)
StartCombat Player
endif

END

=======

x = distance from actor to player

Aside from making my day, helping me finish this script would solve a bottleneck that has been holding this mod back for days. =)

I will also give credit for the help, both in the actual script and in the game.

Thanks a lot,

Devlin aka Soaren
User avatar
claire ley
 
Posts: 3454
Joined: Fri Aug 04, 2006 7:48 pm

Post » Thu Oct 22, 2009 7:29 pm

Hit the GECK wiki on what an "ambush" AI package is. I suspect it can be made to do what you need.
User avatar
Karen anwyn Green
 
Posts: 3448
Joined: Thu Jun 15, 2006 4:26 pm

Post » Thu Oct 22, 2009 3:06 pm

Hit the GECK wiki on what an "ambush" AI package is. I suspect it can be made to do what you need.


I did. I'm not looking for a package though, i'm looking for a script.

If anyone knows of an alternative to the script or aggro radius, I'm all ears.
User avatar
Adrian Powers
 
Posts: 3368
Joined: Fri Oct 26, 2007 4:44 pm

Post » Thu Oct 22, 2009 5:52 pm

Uh, there is an aggro radius behaviour option on the creature's AI tab?
User avatar
Ria dell
 
Posts: 3430
Joined: Sun Jun 25, 2006 4:03 pm

Post » Thu Oct 22, 2009 4:49 pm

Uh, there is an aggro radius behaviour option on the creature's AI tab?


Already mentioned it doesn't work...

NV geck is horribly bugged... not surprized.
User avatar
Tiff Clark
 
Posts: 3297
Joined: Wed Aug 09, 2006 2:23 am

Post » Thu Oct 22, 2009 9:20 am

Already mentioned it doesn't work...

NV geck is horribly bugged... not surprized.


The ambush package will change their aggro radius...

Now the only issue is that they don't wander, they face the same direction.
User avatar
Mimi BC
 
Posts: 3282
Joined: Sat Oct 07, 2006 10:30 pm

Post » Thu Oct 22, 2009 5:49 pm

deleted
User avatar
Lizbeth Ruiz
 
Posts: 3358
Joined: Fri Aug 24, 2007 1:35 pm

Post » Thu Oct 22, 2009 11:01 pm

Try giving the wait location on the ambush package a radius.
User avatar
sunny lovett
 
Posts: 3388
Joined: Thu Dec 07, 2006 4:59 am

Post » Thu Oct 22, 2009 1:59 pm

Try giving the wait location on the ambush package a radius.

yeah I'm actually having an issue where they just stand there facing the direction they are facing in the geck... Gonna try increasing that now to see if that works... if not.... probably back to the script. /cry

God the GECK is so horrible. How did they make New Vegas with it?

Aggro radius doesn't work... just tried it for fifth+ time.

Can't get them to wander with the ambush script, so it just looks stupid.
And the ambush script takes precedence over the wander script, so that doesn't work either.
User avatar
Susan
 
Posts: 3536
Joined: Sun Jun 25, 2006 2:46 am

Post » Thu Oct 22, 2009 9:28 pm

yeah I'm actually having an issue where they just stand there facing the direction they are facing in the geck... Gonna try increasing that now to see if that works... if not.... probably back to the script. /cry


It has to work. I saw a 'young deathclaw' near where the alpha deathclaw etc is, and it was on an ambush package, and it was pacing around now and then.
User avatar
Emily Graham
 
Posts: 3447
Joined: Sat Jul 22, 2006 11:34 am

Post » Thu Oct 22, 2009 5:50 pm

It has to work. I saw a 'young deathclaw' near where the alpha deathclaw etc is, and it was on an ambush package, and it was pacing around now and then.


maybe its scripted.

Also, I put DEAD units near the entrance to the camp except they aren't dead................
It says in their stats tab HEALTH ZERO. But they aren't dead, the guards attack them when I warp to the camp.
User avatar
Spooky Angel
 
Posts: 3500
Joined: Thu Aug 10, 2006 5:41 pm

Post » Thu Oct 22, 2009 5:13 pm

maybe its scripted.


Nahhhhh, really I think this is how ambush packages work. See how it goes.

Oh um this camp does have working navmesh right?
User avatar
Rachell Katherine
 
Posts: 3380
Joined: Wed Oct 11, 2006 5:21 pm

Post » Thu Oct 22, 2009 8:37 am

Nahhhhh, really I think this is how ambush packages work. See how it goes.

Oh um this camp does have working navmesh right?


yeah I know the mavmesh works.

Hey I want it to work.... been trying to get this going for days. When I give them the package, they stand still facing the direction they are in the GECK.

This should have taken 30 mins, this is the third day I'm on it.
User avatar
Bonnie Clyde
 
Posts: 3409
Joined: Thu Jun 22, 2006 10:02 pm


Return to Fallout: New Vegas