ScriptEvent:entitiesOfClass

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 class to find instances of.
boolean additive -- Whether the entities should be added to the current cache, or the cache should be cleared first.

Result

integer

Supported By

idEntity

Functionality

Finds all entities of the given class, adds them to the entity cache, and returns the size of the entity cache.