modding:function:objsetpos
Discuss this page on this page's Talk Page
objSetPos
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
modding/function/objsetpos.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1