Difference between revisions of "GetPos"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>JOG
imported>QQuix
(Fixed note)
 
(5 intermediate revisions by 5 users not shown)
Line 5: Line 5:


Returns the current world position of the object on the selected axis (X, Y, or Z) in float.  
Returns the current world position of the object on the selected axis (X, Y, or Z) in float.  
===Notes===
If the player is swimming, PlayerRef.GetPos Z returns a value about 100 units higher than the actual player Z position. The actual difference dependes on the player race.


[[Category: Functions]]
[[Category: Functions]]
[[Category:Functions (CS)]]
[[Category: Functions (CS 1.0)]]
[[Category: Condition Functions]]
[[Category: Condition Functions (CS 1.0)]]
[[Category: Movement Functions]]
[[Category: Movement Functions]]
[[Category: Condition Functions]]
[[Category: Movement Functions (CS 1.0)]]
 
<!-- Begin Search Terms
Get
Pos
End Search Terms -->
 
== See Also ==
* [[SetPos]]

Latest revision as of 10:53, 9 July 2012

Syntax:

GetPos axis

Example:

GetPos Z 

Returns the current world position of the object on the selected axis (X, Y, or Z) in float.

Notes[edit | edit source]

If the player is swimming, PlayerRef.GetPos Z returns a value about 100 units higher than the actual player Z position. The actual difference dependes on the player race.


See Also[edit | edit source]