GetWorldSpace - ObjectReference

From the CreationKit Wiki
Revision as of 02:50, 7 March 2016 by imported>Terra Nova (Undo revision 45568 by Terra Nova2 (talk))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: ObjectReference Script

Obtains the WorldSpace the object reference is in.

Syntax[edit | edit source]

WorldSpace Function GetWorldSpace() native

Parameters[edit | edit source]

None

Return Value[edit | edit source]

The WorldSpace the reference is currently in.

Examples[edit | edit source]

; Is our object in the super awesome worldspace?
if myObject.GetWorldSpace() == SuperAwesomeWorldSpace
  Debug.Trace("Object is in position, do something cool!")
endIf

See Also[edit | edit source]