IsInLocation - ObjectReference

From the Fallout4 CreationKit Wiki
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[edit | edit source]

bool Function IsInLocation(Location akLocation)

Parameters[edit | edit source]

Return Value[edit | edit source]

Whether this reference is in the specified location.

Examples[edit | edit source]

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

See Also[edit | edit source]