User Tools

Site Tools


modding:function:shpgetdirection

Discuss this page on this page's Talk Page

shpGetDirection

See shpGetDirection at Xelerus

Syntax (shpGetDirection ship) → number
Arguments ship: The ship that you want to get the direction of.
Returns number: The direction of the ship in degrees.
Category ship
Description Returns the direction of the ship.

Example

(objMoveTo gplayership (sysVectorPolarOffset gplayership (shpGetDirection gplayership) 500))

Moves the player ship 500 forward.

Return to Functions list

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