Functions Documentation
View Function Edit Function
Name objGetDistance
Syntax (objGetDistance spaceObject spaceObject)
Argument List spaceObject: The space object you want to find the distance from.
spaceObject: The space object you want to find the distance to.
Returns number: The distance between the two space objects.
Category spaceobject
Description Returns the distance between the two space objects.
Example
(objGetDistance gPlayerShip gsource)

Returns the distance between the calling space object and the player ship.
Comment Helpful little function if you want something to happen only when the player is close enough.