GetWorldSpace - ObjectReference

Member of: ObjectReference Script

Obtains the WorldSpace the object reference is in.

SyntaxEdit

WorldSpace Function GetWorldSpace() native

ParametersEdit

None

Return ValueEdit

The WorldSpace the reference is currently in.

ExamplesEdit

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

See AlsoEdit