referenceActivated⚓︎
This event is triggered when a reference becomes active because its cell has been loaded, or it has been placed or moved to an active cell. Current notable exception: when loading a save game that's in the same cell as the player, the cell stays active and unmodified references will not trigger referenceActivated. This exception may be resolved with future patches.
--- @param e referenceActivatedEventData
local function referenceActivatedCallback(e)
end
event.register(tes3.event.referenceActivated, referenceActivatedCallback)
Tip
This event can be filtered based on the reference
event data.
Tip
An event can be claimed by setting e.claim
to true
, or by returning false
from the callback. Claiming the event prevents any lower priority callbacks from being called.
Event Data⚓︎
reference
(tes3reference): Read-only. The reference which was activated.