OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Mikeyfish90210 on 14 Mar 2005, 17:22:26
-
How would i make a waypoint where you have to first kill a group of people, and once everyone has died another waypoint objective comes up, after it has waited for the whole group to have died??
???
-
You could use a switch trigger or put something in the condition field of your waypoint. The something would look like
{alive _x} count arrayoftheguystobekilled < 1
eg
{alive _x} count units groupname < 1
-
If you make a Search and Destroy waypoint. It will not be completed until all the enemy units that are in the waypoint radius at mission start are killed.
-
Unless you use a switch trigger
-
Sort of from the Prima guide bit on WPs:
DESTROY: this WP must be placed ON a target unit - select attacking unit, select Waypoints - double-click on target unit. Attacker moves to WP, attacks when he sees the unit, if not searches for the unit and kills it.
The implication is the WP is complete when the target unit is no more. A Seek & Destroy is too general as THobson says - the group will wander around looking for anyone to kill until they get bored.
The snag is that it suggests it works for a single unit rather than a group, but it's a safe bet the attacking group will take out the target unit's group as well.
The
{alive _x} count units groupname < 1condition will hold the attackers at the WP until the targets are dead but if the target group bimble off elsewhere, the attackers won't go after them and may sit on the WP forever.