This event is triggered when a reference is deactivated because it has been removed from the world, or is no longer in an active cell.
--- @param e referenceDeactivatedEventData local function referenceDeactivatedCallback(e) end event.register(tes3.event.referenceDeactivated, referenceDeactivatedCallback)
This event can be filtered based on the
reference 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.
reference(tes3reference): Read-only. The reference which was deactivated.