Functions Documentation
View Function Edit Function
Name objSetPos
Syntax (objSetPos spaceObject vector) -> vector
Argument List spaceObject: The space object that you want to position.
vector: The position you want to move it to.
Returns vector: The spaceObject's vector after it has been moved.
Category vector operator, spaceobject
Description Moves a space object to the vector given.
Example From the Movable Barricade mod.
(objSetPos gSource 
 (sysVectorPolarOffset 
  gplayership 
  (shpGetDirection gplayership) 
  5
 )
)


Move gSource (the barricade) 5 light seconds in the direction the player ship is pointing.
Comment