GetInCurrentLoc

From the CreationKit Wiki
Revision as of 10:30, 31 May 2013 by imported>Thingy Person
Jump to navigation Jump to search

Description

GetInCurrentLoc returns 1 if the reference's current location is (or has a parent location of) the supplied location. If run on a location, returns 1 if the parent of the location is (or has a parent location of) the supplied location.

Syntax

[ObjectREF].GetInCurrentLoc Location

Examples

player.GetInCurrentLoc WhiterunLocation   ;returns true if player is in WhiterunLocation or in a location that has WhiterunLocation as a parent.

See Also

Papyrus Functions