The cellChanged event is triggered when the player changes cells. This might occur from going through a door, using intervention or recall spells, or from scripted repositioning.
--- @param e cellChangedEventData local function cellChangedCallback(e) end event.register(tes3.event.cellChanged, cellChangedCallback)
This event can be filtered based on the
cell event data.
An event can be claimed by setting
true, or by returning
false from the callback. Claiming the event prevents any lower priority callbacks from being called.
cell(tes3cell): Read-only. The new cell that the player has entered.
previousCell(tes3cell): Read-only. The previous cell that the player came from. This will be nil when loading a game.