OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Ilkka on 08 Jan 2003, 14:46:49
-
How can I prevent group to move next waypoint until area X is clear of enemies or when objective X is completed?
-
You need to attach a trigger to the waypoint "sinc". Then in the box where it says #End1 etc etc set it to switch.
Now all you need to do is get the trigger to activate when you want it to. Which we all know is simple. Make a script that detect if he is alive then set it so that when he aint it makes dead=1 or whatever you want.
In the Condition box of that trigger you made put dead==1.
Then when whatever you want to happen, happens the waypoint will jump to the next one.
:joystick: good luck matey
-
If you want it to change when an objective is complete then next to your {obj1 status} blah blah put ;move=1
Then in the trigger you attached put the condition to move==1
Or if you want it clear of baddies :-\ just make a trigger over the area and set it to : activation = east, Not present. Then onece again in the on activation put, move=1
Then in the trigger you attached put the condition to move==1
:thumbsup: Give it a go!