ScriptEvent:distanceTo

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

Parameters

entity entity -- Entity to check the distance to.

Result

float

Supported By

idEntity

Comments

  • If the entity passed in is null, a very large distance will be returned.

Functionality

Returns the distance from this entity to the given entity.