ScarDoc

Start typing to search the SCAR reference.

Function
EGroup

EGroup_CallEntityFunctionAllOrAny

Returns whether ALL or ANY entities in an egroup satisfy a condition, using an Entity_ function to perform the query on each entity

On this page
EGroup_CallEntityFunctionAllOrAny(egroup, all, entityFunction, argument list)

Description

Example: EGroup_CallEntityFunctionAllOrAny( eg_emplacements, ANY, Misc_IsEntityOnScreen, pct ) will call Misc_IsEntityOnScreen( entity, pct ) to determine whether ANY entity in eg_emplacements is on screen The first parameter of the supplied function must be EntityID

Parameters

  • egroupEGroupIDrequired
  • allBooleanrequired
  • entityFunctionFunctionrequired
  • argument listVariablerequired

Returns

Unknown

Source

Declared in the game's script sources at:

scar/groups.scar