Function
SGroup
SGroup_CallEntityFunction
Calls an Entity_ function on every entity in an sgroup
On this page
SGroup_CallEntityFunction(sgroup, entityFunction, arg3)Description
Example: SGroup_CallEntityFunction( sg_riflemen, Entity_SetCrushable, false ) will call Entity_SetCrushable( entity, false ) for every entity in sg_riflemen. The first parameter of the supplied function must be EntityID
Parameters
sgroupSGroupIDrequiredentityFunctionFunctionrequiredarg3variable-argument-listrequired
Returns
UnknownSource
Declared in the game's script sources at:
scar/groups.scar