Difference between revisions of "ScriptEvent:distanceTo"

From Mod Wiki
 
(No difference)

Latest revision as of 12:59, 5 November 2007

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.