User Tools

Site Tools


modding:function:objgetdistance

This is an old revision of the document!


Discuss this page on this pages TalkPage

objGetDistance

See objGetDistance at Xelerus

Syntax (objGetDistance spaceObject spaceObject)
Arguments 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. Return to Functions list

modding/function/objgetdistance.1419655255.txt.gz · Last modified: 2017/01/21 00:38 (external edit)