OnCellEnter
From GECK
A function added by the Lutana NVSE plugin, now part of the JIP NVSE Plugin.
Description
Passes the entered cell to the UDF when the player changes cells.
Syntax
(cell:form) OnCellEnter UDFForm:UserDefinedFunction
Example
SetEventHandler "OnCellEnter" MyUDF SetEventHandler "OnCellEnter" MyUDF "first"::Cell SetEventHandler "OnCellEnter" MyUDF "first"::FormListOfCells
Handler Script
A skeleton handler script for this event:
scn MyUDF ref rEnteredCell BEGIN Function {rEnteredCell} (code) END
Notes
- Does trigger for exterior cells when crossing cell borders but exterior cell IDs cannot be provided as an argument as it will not trigger.