IsInLocation - ObjectReference

From the CreationKit Wiki
Revision as of 16:25, 24 October 2011 by imported>Jlundin (→‎See Also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: ObjectReference Script

Checks to see if this object is in the specified location, or a child of the specified location.

Syntax

bool Function IsInLocation(Location akLocation)

Parameters

Return Value

Whether this reference is in the specified location.

Examples

; Is the box in the house location?
if Box.IsInLocation(House)
  Debug.Trace("Box is in the house!")
endIf

See Also