Difference between revisions of "ScriptEvent:entitiesOfClass"

From Mod Wiki
 
(No difference)

Latest revision as of 11:46, 5 November 2007

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.