User Tools

Site Tools


modding:function:sysvectorspeed

Discuss this page on this page's Talk Page

sysVectorSpeed

See sysVectorSpeed at Xelerus

Syntax (sysVectorSpeed velVector)
Arguments velVector: a velocity vector
Returns number - an integer representing a speed (in % of c)
Category system, vector operator
Description A very useful function to transform messy velVectors into human readable speeds.

Example

(sysVectorSpeed (objGetVel gPlayerShip))

Returns the speed the playership is travelling at (in % of c) Another useful wrapper function when dealing with velVectors.

Return to Functions list

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