Home   Help Search Login Register  

Author Topic: Check the squad numbers of 3 groups  (Read 1387 times)

0 Members and 1 Guest are viewing this topic.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Check the squad numbers of 3 groups
« 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.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re: Check the squad numbers of 3 groups
« Reply #1 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.
"When 900 years YOU reach, look as good you will not!"

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re: Check the squad numbers of 3 groups
« Reply #2 on: 21 Oct 2008, 21:44:35 »
Can I whack a
Code: [Select]
: goto "whatever" on the end of that line?
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline Luke

  • Members
  • *
  • Thank God! The OFPEC Staff are here!
Re: Check the squad numbers of 3 groups
« Reply #3 on: 22 Oct 2008, 01:54:59 »
only if its an .sqs file, not a .sqf.

Luke
Pesky Human!!
Wort Wort Wort.

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re: Check the squad numbers of 3 groups
« Reply #4 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.
"When 900 years YOU reach, look as good you will not!"