Discuss this page on this page's [[objSetPos Talk Page|Talk Page]] === objSetPos === See [[http://xelerus.de/index.php?s=functions&function=333|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 functions|spaceObject]],[[vector operator functions|vector operator]] | ^ Description | Moves a space object to the vector given. | === Example === From the [[http://xelerus.de/index.php?s=mod&id=752|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