ScarDoc

Start typing to search the SCAR reference.

Function
SGroup

SGroup_CallSquadFunctionAllOrAny

Returns whether ALL or ANY squads in an sgroup satisfy a condition, using a Squad_ function to perform the query on each squad

On this page
SGroup_CallSquadFunctionAllOrAny(sgroup, all, squadFunction, argument list)

Description

Example: SGroup_CallSquadFunctionAllOrAny( sg_commandos, ANY, Misc_IsSquadOnScreen, pct ) will call Misc_IsSquadOnScreen( squad, pct ) to determine whether ANY squad in sg_commandos is on screen The first parameter of the supplied function must be SquadID

Parameters

  • sgroupSGroupIDrequired
  • allBooleanrequired
  • squadFunctionFunctionrequired
  • argument listVariablerequired

Returns

Unknown

Source

Declared in the game's script sources at:

scar/groups.scar