Discuss this page on this pages [[objGetDistance Talk Page|TalkPage]] === objGetDistance === See [[http://xelerus.de/index.php?s=functions&function=93|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 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