Skip to content


This event is invoked when the player selects a new reference with the console, or unselects a reference.

--- @param e consoleReferenceChangedEventData
local function consoleReferenceChangedCallback(e)
event.register(tes3.event.consoleReferenceChanged, consoleReferenceChangedCallback)


This event can be filtered based on the reference event data.


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, nil): Read-only. The newly selected reference, or nil if nothing is now selected.