Home   Help Search Login Register  

Author Topic: Group death waypoint  (Read 518 times)

0 Members and 1 Guest are viewing this topic.

Offline Mikeyfish90210

  • Members
  • *
  • HEY STOP TAKING SO LONG TO ANSWER SIMPLE THREADS
Group death waypoint
« 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??
 ???
MIkEy FIshY BoyY YabDAO

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Group death waypoint
« Reply #1 on: 14 Mar 2005, 17:30:30 »
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
« Last Edit: 14 Mar 2005, 17:30:54 by THobson »

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re:Group death waypoint
« Reply #2 on: 14 Mar 2005, 21:33:40 »
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.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Group death waypoint
« Reply #3 on: 14 Mar 2005, 21:36:08 »
Unless you use a switch trigger

Offline ACF

  • Members
  • *
  • Llama?? Ain't that French for tanks?
Re:Group death waypoint
« Reply #4 on: 14 Mar 2005, 21:47:47 »
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
Code: [Select]
{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.