OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: greg147 on 13 Feb 2005, 21:34:47

Title: Multiple units dead = end
Post by: greg147 on 13 Feb 2005, 21:34:47
Hi all,
   
1. How do I make a mission end when a certain 3 groups are destroyed?

2. Also, I know that
Code: [Select]
not (alive tank1) activates a trigger when tank1 is destroyed, but how do I do this with 2 tanks destroyed?


Thanks  ;)
Title: Re:Multiple units dead = end
Post by: Triggerhappy on 14 Feb 2005, 00:19:03
1. Group a not present trigger to the three groups, and make it cover the entire entire map. then set it to do what you want

2. not alive tank1 and not alive tank2
or
!(alive tank1) && !(alive tank2)
Title: Re:Multiple units dead = end
Post by: macguba on 14 Feb 2005, 00:42:33
Don't use not alive for vehicles, it is unreliable.    Use something like

Quote
"not (canMove _x) or not (canFire _x)" count [ tank1, tank2, tank3, tank4, tank5, tank6 ] == 6

which Sui gave as an answer to this same question in a thread on this very page.


Title: Re:Multiple units dead = end
Post by: greg147 on 14 Feb 2005, 09:01:28
Aha, that should work. Thanks for the help. ;D
Title: Re:Multiple units dead = end
Post by: greg147 on 14 Feb 2005, 15:19:00
Hang on a sec

@Triggerhappy

How do you group a trigger with more than one group? Every time I try to group a second group to it, the first deletes itself  :-\
Title: Re:Multiple units dead = end
Post by: Planck on 14 Feb 2005, 20:07:41
Quote
How do you group a trigger with more than one group? Every time I try to group a second group to it, the first deletes itself


Hmmmmm........not sure............maybe using the shift key perchance?


Planck
Title: Re:Multiple units dead = end
Post by: Triggerhappy on 14 Feb 2005, 22:19:40
drag the line from the groups to the trigger (as in click the group first)
if you do it the other way around it will just change it