ScriptEvent:filterEntitiesByAllegiance
From Mod Wiki
Parameters
integer mask -- Mask of which allegiances to match. This may include TA_FLAG_FRIEND, TA_FLAG_NEUTRAL, and TA_FLAG_ENEMY. boolean inclusive -- Whether to include or exclude matched entities.
Result
Supported By
idEntity
Comments
- This does not use disguise information, for that use filterEntitiesByDisguiseAllegiance.
Functionality
Removes entities from the entity cache based on whether they are of the given allegiance relative to this entity, and returns the number that are left.