GetWorldSpace - ObjectReference

From Creation Kit
Jump to: navigation, search

Member of: ObjectReference Script

Obtains the WorldSpace the object reference is in.

Syntax

WorldSpace Function GetWorldSpace() native

Parameters

None

Return Value

The WorldSpace the reference is currently in.

Examples

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

See Also