Difference between revisions of "GetPos"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>DewiMorgan
(→‎Summary: clarifying it returns only one of the three, not a triplet.)
imported>Geckbot
m (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1)))
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
{{Function
|origin = GECK1
|CSWikiPage = GetPos
|summary = Returns the object's world-position for the specified axis (x, y or z). Return value is a float.
|origin = GECK1
|referenceType = <nowiki>ObjectID</nowiki>
|summary = Gets the position of the calling object relative to the world on the specified axis (X, Y, or Z).
|arguments = {{FunctionArgument
|name = GetPos
    |Name = axis
|returnType = float
    |Type = string
|referenceType = [Object]
    |Value = X, Y, Z
|arguments =  
  {{FunctionArgument
  |Name = Axis
  |Type = char
  |Value = X, Y, Z
   }}
   }}
|example = ActorRef.GetPos Z
Player.GetPos X
}}
}}
==Examples==
== Notes ==
myObjectRef.GetPos y
*None at this time.
Gets the y-axis position myObjectRef.


==See Also==
==See Also==
*[[SetPos]]
*[[SetPos]]
*Link to TES4 Construction Set Wiki: [http://cs.elderscrolls.com/constwiki/index.php/GetPos GetPos].
*[[MoveTo]]
*[[GetAngle]]
*[[SetAngle]]
*[[GetHeadingAngle]]
*[[Rotate]]


[[Category:Functions]]
[[Category:Functions]]
[[Category:Functions (GECK 1.1)]]
[[Category:Movement Functions]]
[[Category:Movement Functions]]
[[Category:Movement Functions (GECK 1.1)]]
[[Category:Condition Functions]]
[[Category:Condition Functions]]
[[Category:Condition Functions (GECK 1.1)]]

Latest revision as of 12:33, 15 August 2009

< [[::Category:Functions|Category:Functions]]

Link to TES4 Construction Set Wiki: GetPos.

A function included in the GECK version 1.1.0.36.

Description

Gets the position of the calling object relative to the world on the specified axis (X, Y, or Z).

Syntax

[help]
(float) [Object].GetPos Axis:char{X, Y, Z}

Example

ActorRef.GetPos Z
Player.GetPos X

Notes

  • None at this time.

See Also