ScarDoc

Start typing to search the SCAR reference.

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

  • sgroupSGroupIDrequired
  • entityFunctionFunctionrequired
  • arg3variable-argument-listrequired

Returns

Unknown

Source

Declared in the game's script sources at:

scar/groups.scar