User Tools

Site Tools


modding:function:objincvel

Discuss this page on this page's Talk Page

objIncVel

See objIncVel at Xelerus

Syntax (objIncVel spaceObject vector) → vector
Arguments spaceObject: The space object you want to alter a numerical data in.
vector: The vector you want to change the space object velocity by.
Returns vector: returns the new velocity vector.
Category SpaceObject, vector operator
Description Adds the number to the data in the space object named by the string.

You can stop a space object with objMoveTo. Then you can set the velocity to anything.

Example

(objIncVel gPlayerShip (sysVectorPolarOffset Nil 0 10))

Makes the player ship move to the right by 10 more.

Return to Functions list

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