GetWorldSpace - ObjectReference

From the Fallout4 CreationKit Wiki
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]