OnLocationChange - Actor: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
imported>Lisselli
(→‎Notes: Note on most exterior cells not having a location.)
m (Convert source tags to syntaxhighlight)
Line 7: Line 7:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Event OnLocationChange(Location akOldLoc, Location akNewLoc)
Event OnLocationChange(Location akOldLoc, Location akNewLoc)
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 16: Line 16:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Event OnLocationChange(Location akOldLoc, Location akNewLoc)
Event OnLocationChange(Location akOldLoc, Location akNewLoc)
   if (Game.GetPlayer().GetCurrentLocation() == akOldLoc)
   if (Game.GetPlayer().GetCurrentLocation() == akOldLoc)
Line 22: Line 22:
   endIf
   endIf
endEvent
endEvent
</source>
</syntaxhighlight>


== Notes ==
== Notes ==

Navigation menu