ScriptEvent:filterEntitiesByRadius

From Mod Wiki

Parameters

vector center -- Center of the sphere.
float radius -- Radius of the sphere.
boolean inclusive -- Whether to include or exlude the entities withing the sphere.

Result

integer

Supported By

idEntity

Functionality

Removes entities from the entity cache based on whether they are inside or outside of the specified sphere, and returns the number that are left.