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
sgroupSGroupIDrequiredallBooleanrequiredsquadFunctionFunctionrequiredargument listVariablerequired
Returns
UnknownSource
Declared in the game's script sources at:
scar/groups.scar