GetWorldSpace - ObjectReference

From the CreationKit Wiki
Revision as of 15:29, 4 March 2016 by imported>Terra Nova2 (Works mainly on references in exterior cells.)
Jump to navigation Jump to 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

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