ScarDoc

Start typing to search the SCAR reference.

Function
EGroup

EGroup_CallEntityFunction

Calls an Entity_ function on every entity in an egroup

On this page
EGroup_CallEntityFunction(egroup, entityFunction, argument list)

Description

Example: EGroup_CallEntityFunction( eg_emplacements, Entity_SetAnimatorAction, actionName ) will call Entity_SetAnimatorAction( entity, actionName ) for every entity in eg_emplacements The first parameter of the supplied function must be EntityID

Parameters

  • egroupEGroupIDrequired
  • entityFunctionFunctionrequired
  • argument listVariablerequired

Returns

Unknown

Source

Declared in the game's script sources at:

scar/groups.scar