OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Gooner861 on 10 Jul 2003, 19:55:38

Title: Making units not in ur command wait for enemy to reach certain place b4 firing
Post by: Gooner861 on 10 Jul 2003, 19:55:38
How can u make units not in ur command wait for the enemy to get to a certain position b4 firing. I suppose u use waypoints and triggers.
Title: Re:Making units not in ur command wait for enemy to reach certain place b4 firin
Post by: Kaliyuga on 10 Jul 2003, 21:07:45
 Well.... you're right on the money pretty much...  

there are several ways to do it....  just like about everything else in OFP  ;D

but the simplest is to give them a waypoint with  'safe' and 'never fire' where you want them to hang out at first...

and then make the next waypoint 'open fire engage at will' or whatever..

now if you make a trigger.. and synch it to your first waypoint.. the loons will stay there ... on safe mode until the trigger goes off... at which point they will head onto the next waypoint.

you can have the trigger be set off however you want... ;)

but if a waypoint is synched to a trigger.. or another waypoint..  the following waypoint won't be there until the triggers condition is met ;)
Title: Re:Making units not in ur command wait for enemy to reach certain place b4 firin
Post by: BronzeEagle on 10 Jul 2003, 21:36:22
set the enemy as all captives using in each ones init field: this setcaptive true.  then set a trigger for the area where they get shot upon that says is an east present trigger, and for the on activation put for each enemy soldier in the on activation field: enemysoldier 1 setcaptive false, but one by one.  they'll get shot at for sure in that zone.
Title: Re:Making units not in ur command wait for enemy to reach certain place b4 firin
Post by: Gooner861 on 11 Jul 2003, 10:34:51
Cheers guys, great help. ;D
Title: Re:Making units not in ur command wait for enemy to reach certain place b4 firin
Post by: Gooner861 on 12 Jul 2003, 20:49:07
Thanks but theres still a problem.
I want to draw the enemy in2 an open space and shoot them up. I already have units in place around the killing zone so i put a waypoint on top of unit with "Do not fire or wotever" then another waypoint of "hold" rite next to the first waypoint with open fire etc, i put it rite next to the first cos i dont want the unit to move at all. Wen the trigger i have placed is activated for some reason the unit gets up and runs away. WHY????????