OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Bomberman on 12 Oct 2002, 00:03:35
-
i want a trigger to activate and end the mission and play the lose outro only if 80% of "bravo" squad is dead. how do i do it?
-
Use this in a trigger
("Alive _x" count units bravo) <= x
PUt instead of x the number of man that will be alive when the 80% is dead. I mean, if there are 10 men, put there 2, so 8 or more will be dead when the trigger gets activated.
Now in its On Activation field put final=true.
Now create another trigger, Condition final, with the end you want
-
or you can use this to get a percentage, 0.8 is 80%
"!Alive _x" count units bravo >= 0.8 *Count units bravo
-
heres a condition that someone here showed me....
?: count (units groupa) < (groupacount * 0.2)
go=true
-
hey thanks guys! do i have to assign a name to the group? isnt it something like bla, blah foreach "bravolead" ? lol