ScarDoc

Start typing to search the SCAR reference.

Function
EGroup

EGroup_GetSpawnedEntityFilter

Get the first spawned entity from egroup that meets the condition (a function that takes an entity)

On this page
EGroup_GetSpawnedEntityFilter(egroupid, condition(entity))

Description

Get the first spawned entity from egroup that meets the condition (a function that takes an entity)

Parameters

  • egroupidEGrouprequired
  • condition(entity)Functionrequired

Returns

EntityIDEntityID or NIL if none met condition

Source

Declared in the game's script sources at:

scar/groups.scar