Difference between revisions of "GetInCurrentLocAlias"

2 bytes added ,  21:36, 21 November 2023
m
Correct a small error in my example
(Add my findings about how this condition function behaves when filling an alias, specifically that it will match on either current or persistence locations. Also add links to Location Alias and Reference Alias.)
m (Correct a small error in my example)
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>Whiterun</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 WhiterunLocation</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 when the player is in ''either'' Markarth or Whiterun.


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

edits