Difference between revisions of "GetInCurrentLoc"

473 bytes added ,  21:35, 21 November 2023
Add my findings about the behavior of GetInCurrentLoc when filling aliases, specifically that a reference's current and persistence location are both considered.
imported>Thingy Person
(Add my findings about the behavior of GetInCurrentLoc when filling aliases, specifically that a reference's current and persistence location are both considered.)
 
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. If run on a location, returns 1 if the parent of the 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.
When you use <code>GetInCurrentLoc</code> to fill a [[Reference Alias]], be aware that a reference's current ''actual'' location as well as its [[Reference#Persist_Location|''persistence location'']], if it has one, will be considered.
For example, if an Actor is currently in Markarth but has a persistence location of <code>WhiterunLocation</code>, then <code>GetInCurrentLoc WhiterunLocation</code> will match the Actor, even though the Actor is actually in Markarth.


==Syntax==
==Syntax==
56

edits