OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Quantum Jelly on 07 Jun 2005, 19:51:44
-
If I have a 'seek and destroy' waypoint, is there a way to make this waypoint 'complete' (so the next waypoint shows) only by destroying 3 specific targets? If so, how is it done?
Bear in mind I don't know much about mission editing, so try and keep it as simple as possible please. :)
-
Try:
S&D waypoint followed by a Cycle waypoint followed by the next waypoint you want. Create a switch trigger and synchronise it with the Cycle WP, have the trigger fire when your three specific targets have been killed.
-
Why not just sync the trigger to the S&D wp? What's the cycle wp used for in this particular case?
-
If you just have a seek and D the group will eventually stop.
-
Exactly.
Also, though it does not apply in this case, synchronising a switch trigger with a Guard waypoint of a vehicle can create some unwanted effects (the crew get out of the vehicle). So I have got into the habit of synchronising switch triggers with 'dummy ' waypoints in any event.
-
Try:
S&D waypoint followed by a Cycle waypoint followed by the next waypoint you want. Create a switch trigger and synchronise it with the Cycle WP, have the trigger fire when your three specific targets have been killed.
How do I make the trigger fire when the three targets have been destroyed?
-
Well assuming the three targets are foot units (not vehicles) called unit1, unit2 and unit3 set the condition field of the trigger to
not (alive unit1) and not (alive unit2) and not (alive unit3)
(or:
{alive _x} count [unit1,unit2,unit3] < 1
)
If they are vehicles try the following in the trigger's condition field:
{(canFire _x) or (canMove _x)} count [unit1,unit2,unit3] < 1