Discuss this page on this page's Talk Page

objSetPos

See objSetPos at Xelerus

Syntax (objSetPos spaceObject vector)
Arguments spaceObject: The space object that you want to locate.
vector: The position you want to move it to.
Returns vector: The new vector of the object(?)
Category spaceObject,vector operator
Description Moves a space object to the vector given.

Example

From the Movable Barricade mod.

(objSetPos gSource (sysVectorPolarOffset gplayership (shpGetDirection gplayership) 5))

Moves gSource (the barricade) 5 light seconds(?) in the direction the player ship is pointing.

Return to Functions list