GetInCurrentLocAlias
Revision as of 08:14, 24 November 2023 by Jadkai (talk | contribs) (Corrected an error saying that the Actor would be matched in Markarth when tested against an alias containing their persistence location only. The statement as written was the behavior I observed but the test condition was against an alias that was filled with the player's current location.)
GetInCurrentLocAlias returns TRUE if the reference's current Location is (or has a parent location of) the supplied alias. If run on a location, returns TRUE if the parent of the location is (or has a parent location of) the supplied alias.
When you use GetInCurrentLocAlias
to fill a Reference Alias, be aware that a reference's current actual location as well as its persistence location, if it has one, will be considered.
For example, if you have a Location Alias named WhiterunAlias
that is filled with WhiterunLocation
, and if an Actor is currently in Markarth but has a persistence location of WhiterunLocation
, then GetInCurrentLocAlias WhiterunAlias
will match the Actor, even though the Actor is actually in Markarth.