Mod:Creation Kit/IsInLocation - ObjectReference

Member of: Mod:Creation Kit/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

 * akLocation: The Location to check.

Return Value
Whether this reference is in the specified location.

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