Background for Skyrim SE
Member of the ObjectReference script
floatfunctionGetPositionZ()Native

Description

Wiki Description

Returns the current Z position of the reference.

Documentation Comment

Get the current Z position of the object


Caveats

CK Wiki - Notes

  • The object reference's Z property also returns this value.
  • The Z position is usually a negative number.
  • The higher you are in the game (i.e. on a mountain, hill, ...), the more positive the value of the Z position will be. The lower you are, the more negative the value of the Z position will be.

Examples

Debug.Trace("The box has an z position of: " + box.GetPositionZ())

Auto-Generated Example

float returnedValue = myObjectReference__toCallFunctionOn.GetPositionZ()

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.