Jump to content
Sign in to follow this  
Jester_UK

Kronsy's UPS from a trigger?

Recommended Posts

Is it possible to have Kronsky's Urban Patrol script run on a character when he enters a trigger zone?

In this particular case I have an officer that has an animation script run on him that ends on using the "doMove getPos" command to send him into the area of the next trigger. On entering that trigger I want to activate Kronsky's Urban Patrol Script (which is already running in the mission from the beginning) on this character.

Can anyone tell me what cammand syntax to use in the trigger zone's on act line to get this working?

Share this post


Link to post
Share on other sites

Looking at the readme from the UPS download, I see this snippet:

Quote[/b] ]

; Creating a mission with this script requires four steps: ;

; ;

; 1. Position the player(s) on the map. ;

; ;

; 2. Create a rectangular marker over the area that should be "patrolled" (e.g. a city). ;

; Give this marker a name (e.g. "Alpha") ;

; ;

; 3. Create a Game Logic, named "server", that initializes the script: nul=["init"] execVM "ups-f.sqf" ;

; ;

; 4. Create as many units (or groups) as you find appropriate, ;

; and put the following call into the init field of each leader: nul=[this,"Alpha"] execVM "ups-f.sqf" ;

This looks, to me, like you need to set up the server object and marker object as per the above, then on the trigger activation box type something like:

nul=[unitName,"MarkerName"] execVM "ups-f.sqf"

I haven't tried this, but it looks about right to me biggrin_o.gif try it out & let us know.

Share this post


Link to post
Share on other sites

Thanks mate. I'll give it a go a bit later and let you know.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×