OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: The-Architect on 18 Oct 2008, 23:56:19
-
How do I check the squad numbers of 3 different groups and have a trigger if each of the 3 groups falls below 3 guys?
All 3 of the groups must have <3 guys for the trigger to activate.
-
Condition:
{alive _x} count units group1 < 3 && {alive _x} count units group2 < 3 && {alive _x} count units group3 < 3
Should do it. Might be a niftier way of doing it too, but that's how I'd put it. group1, group2, group3 = names of groups.
<3 ^^
Wolfrug out.
-
Can I whack a
: goto "whatever" on the end of that line?
-
only if its an .sqs file, not a .sqf.
Luke
-
And if you add a "?" at the start, obviously (might also want to put ()'s around the whole statement too in that case).
And yes, only for .sqs.
Wolfrug out.