User Tools

Site Tools


modding:function:shpgetmaxspeed

Discuss this page on this pages TalkPage

shpGetMaxSpeed

See shpGetMaxSpeed at Xelerus

Syntax (shpGetMaxSpeed spaceObject)
Arguments spaceObject: a ship that you want the max speed from.
Returns number: the max speed of the ship.
Category 0.99, ship
Description This function returns the value of the maxSpeed of the shipclass, the value is a % of the lightspeed. (so lightspeed is 100)

Example

(shpGetMaxSpeed gPlayership)

Returns 18 if the player is using the Freighter. Return to Functions list

modding/function/shpgetmaxspeed.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1