ScriptEvent:distanceTo

From Mod Wiki

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.