View Single Post
  #3  
Old 10-31-2009, 12:08 AM
Manic_Mechanic's Avatar
Manic_Mechanic Manic_Mechanic is offline
Approved Member
 
Join Date: Oct 2009
Location: United States
Posts: 15
Default

The condition you're looking for is entities. You cas use the feilds to narrow what entities the condition looks for. The easiest way to do what you're talking about is to tag all the members of the squad and choose the tag in the "entities" command.


Next you need to choose a state. In this case I'm pretty sure you're looking for dead. Set the "count" option to the equals sign and the "value" to the number of men in your squad. Now, when all the men are dead, the condition will be met and the trigger will activate.


If you want this replacement squad to be replaced in turn if they die too, you'll need to use a pair of "entity_state" commands in the trigger, one to remove the tag from the dead squad and the second to give that tag to this new squad. Then add a "trigger" command so that the trigger will turn it'self off after it activates, allowing it to be activated again after the new squad dies.

Hope that helps, just let me know if you have any other questions or need clarification on something.

Last edited by Manic_Mechanic; 10-31-2009 at 12:10 AM. Reason: forgot a detail
Reply With Quote