Difference between revisions of "GetInCurrentLoc"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>SJML Bot
(Bot creating condition functions pages.)
 
imported>Thingy Person
Line 1: Line 1:
==Description==
==Description==
[[GetInCurrentLoc]] returns 1 if the reference's current location is (or has a parent location of) the supplied location.
[[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==
==Syntax==

Revision as of 10:30, 31 May 2013

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