eventOnLocationChange(LocationakOldLoc, LocationakNewLoc)
Description
Wiki Description
Event called when this actor moves from one location to another.
Documentation Comment
Event that is triggered when this actor changes from one location to another
Parameters
Examples
Event OnLocationChange(Location akOldLoc, Location akNewLoc)
if (Game.GetPlayer().GetCurrentLocation() == akOldLoc)
Debug.Trace("We have left the player's location!")
endIf
endEventAuto-Generated Example
Scriptname MyCoolScript extends Actor
event OnLocationChange(Location akOldLoc, Location akNewLoc)
Debug.trace("Event received - OnLocationChange: akOldLoc = " + akOldLoc + " akNewLoc = " + akNewLoc)
endEvent