Difference between revisions of "GetInCurrentLocAlias"

7 bytes removed ,  08:14, 24 November 2023
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.
m (Correct a small error in my example)
(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.)
Tags: Mobile web edit Mobile edit
 
Line 3: Line 3:
When you use <code>GetInCurrentLocAlias</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.
When you use <code>GetInCurrentLocAlias</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 you have a Location Alias named <code>WhiterunAlias</code> that is filled with <code>WhiterunLocation</code>, and if an Actor is currently in Markarth but has a persistence location of <code>WhiterunLocation</code>, then <code>GetInCurrentLocAlias WhiterunAlias</code> will match the Actor when the player is in ''either'' Markarth or Whiterun.
For example, if you have a Location Alias named <code>WhiterunAlias</code> that is filled with <code>WhiterunLocation</code>, and if an Actor is currently in Markarth but has a persistence location of <code>WhiterunLocation</code>, then <code>GetInCurrentLocAlias WhiterunAlias</code> will match the Actor, even though the Actor is actually in Markarth.


==See Also==
==See Also==
56

edits