Difference between revisions of "SetPos"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Omzy
imported>8asrun6aer
m
 
(6 intermediate revisions by 5 users not shown)
Line 7: Line 7:




Setting this value via computations does not work. Instead, use GetPos with computations and use the result as a variable for SetPos.
[[Category: Functions]]
[[Category:Functions (CS)]]
[[Category: Functions (CS 1.0)]]
[[Category: Movement Functions]]
[[Category: Movement Functions (CS 1.0)]]


'''This does not work:'''
<!-- Begin Search Terms
<pre>SetPos X (GetPos X + 40)</pre>
Set
pos
End Search Terms -->


'''This works:'''
== See Also ==
<pre>short xPos
* [[GetPos]]
Set xPos to (GetPos X + 40)
* [[MoveTo]]
SetPos X xPos</pre>
* [[SetVelocity]]
 
[[Category: Functions]]
[[Category: Movement Functions]]

Latest revision as of 23:54, 22 December 2011

Syntax:

SetPos axis, pos 

Example:

SetPos y, 100.56 

Changes the object's world-position along the specified axis (x, y, z). Position is a float.


See Also[edit | edit source]