OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: The-Architect on 18 Oct 2008, 23:56:19

Title: Check the squad numbers of 3 groups
Post 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.
Title: Re: Check the squad numbers of 3 groups
Post by: Wolfrug on 19 Oct 2008, 09:41:34
Condition:

Code: [Select]
{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.
Title: Re: Check the squad numbers of 3 groups
Post by: The-Architect on 21 Oct 2008, 21:44:35
Can I whack a
Code: [Select]
: goto "whatever" on the end of that line?
Title: Re: Check the squad numbers of 3 groups
Post by: Luke on 22 Oct 2008, 01:54:59
only if its an .sqs file, not a .sqf.

Luke
Title: Re: Check the squad numbers of 3 groups
Post by: Wolfrug on 22 Oct 2008, 10:40:38
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.