Difference between revisions of "GetWorldSpace - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Terra Nova2
m (Works mainly on references in exterior cells.)
imported>Terra Nova
m (Undo revision 45568 by Terra Nova2 (talk))
 
Line 24: Line 24:
</source>
</source>


== Notes ==
*This should be only used on objectrefereneces that are in exterior cells. Unless an 'interior' cell is part of a worldspace(such as the cells of Brinewater Grotto)it will return false.
== See Also ==
== See Also ==
*[[ObjectReference Script]]
*[[ObjectReference Script]]

Latest revision as of 02:50, 7 March 2016

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]