OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Sloma on 10 Apr 2003, 11:15:27

Title: Action for units in a triger
Post by: Sloma on 10 Apr 2003, 11:15:27
OK, here is my situation:
I have a triger that detects west units. I want to change combatmode only for resistance units under this triger on its activation.
Title: Re:Action for units in a triger
Post by: macguba on 10 Apr 2003, 11:24:18
You could get the trigger to call a wee script that changes the combatmode of the Resistance units.   However, I'm guessing that the Resistance units are guarding something and you want them to go to aware/combat when West is detected.    

If that (or something similar) is the case, then the best thing to do is create new waypoints for the guards.    In the new waypoints change their behaviour to Aware.    Synchro the old, final waypoint with the trigger.    Make the trigger type switch

Your guards' waypoints look something like this

MOVE   (safe)
MOVE
CYCLE  <----- synchro the switch trigger with this WP
SEEK+DESTROY  (aware)
CYCLE

Hope that helps
Title: Re:Action for units in a triger
Post by: Sloma on 10 Apr 2003, 11:33:49
Ok, that is right, I should have been more precise.
What i meant was, how to do the same for sentries (witout waypoints)?
or How to pass into a script only resistance units from that triger?
Title: Re:Action for units in a triger
Post by: Flapje on 10 Apr 2003, 20:49:11
you could name the res soldiers and put in the init field: dude setbehaviour "lala"; dude2 setbehaviour "lala" etc.

there probably is an easier way 8)