ScriptEvent:entitiesInRadius

From Mod Wiki
Revision as of 11:45, 5 November 2007 by Wizz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Parameters

vector center -- Center of the sphere.
float radius -- Radius of the sphere.
integer mask -- Mask of the contents of entities to find.
boolean absolute -- Whether the sphere is in world space, or in entity space.

Result

integer

Supported By

idEntity

Comments

  • This function clears the entity cache first.

Functionality

Finds all entities in the given sphere, adds them to the entity cache, and returns the number found.