ScriptEvent:filterEntitiesByClass

From Mod Wiki

Parameters

string name -- Name of the class type to check for.
boolean inclusive -- Whether to include or exclude the entities of the specified type.

Result

integer

Supported By

idEntity

Functionality

Removes entities from the entity cache based on whether they are of the given class or not, and returns the number that are left.