Functions Documentation
View Function Edit Function
Name objGetNearestStargate
Syntax (objGetNearestStargate spaceObject)
Argument List spaceObject: The space object that you want to get the nearest star gate from.
Returns spaceObject: The nearest star gate.
Category spaceobject
Description Returns the nearest star gate to the space object.
Example
(objGetNearestStargate gplayerShip)

Returns the nearest star gate to the player ship.
Comment Used main to create ships from the nearest star gate or to find the distance to the nearest star gate.