ScriptEvent:filterEntitiesByFilter

From Mod Wiki

Parameters

integer index -- Index of the targetInfo filter to use.
boolean inclusive -- Whether to include or exclude entities which match the given filter.

Result

integer

Supported By

idEntity

Comments

  • If the index is out of range, nothing will be removed.

Functionality

Removes entities from the entity cache based on whether they match the specified targetInfo filter, and returns the number that are left.