ScriptEvent:entitiesOfType

From Mod Wiki
Revision as of 11:46, 5 November 2007 by Wizz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Parameters

integer index -- Index of the entityDef to search with.

Result

integer

Supported By

idEntity

Comments

  • This function clears the entity cache first.

Functionality

Finds all entities which were spawned using the given entityDef, adds them to the entity cache, and returns the number found.