modding:function:objgetdistance
Discuss this page on this pages TalkPage
objGetDistance
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 in light-seconds. |
Example
(objGetDistance gPlayerShip gsource)
Returns the distance in light-seconds between the calling space object and the player ship. Return to Functions list
modding/function/objgetdistance.txt · Last modified: 2017/01/21 00:38 by 0xabcdef