GetWorldSpace - ObjectReference

Revision as of 17:01, 21 October 2011 by imported>Jlundin
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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