Difference between revisions of "SetPos"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
 
imported>Slserpent
Line 4: Line 4:
  SetPos y, 100.56  
  SetPos y, 100.56  


Changes the object's position along the specified axis (x, y, z). Position is a float.  
Changes the object's position along the specified axis (x, y, z). Position is a float. Position is also absolute. If you need to move an object by a relative amount, modify the return from [[GetPos]].
   
   


[[Category: Functions]]
[[Category: Functions]]
[[Category: Movement Functions]]
[[Category: Movement Functions]]

Revision as of 18:32, 3 May 2006

Syntax:

SetPos axis, pos 

Example:

SetPos y, 100.56 

Changes the object's position along the specified axis (x, y, z). Position is a float. Position is also absolute. If you need to move an object by a relative amount, modify the return from GetPos.