This event fires when a trap is being disarmed.
--- @param e trapDisarmEventData local function trapDisarmCallback(e) end event.register(tes3.event.trapDisarm, trapDisarmCallback)
This event supports blocking by setting
true or returning
false. Blocking the event prevents vanilla behavior from happening. For example, blocking an
equip event prevents the item from being equipped.
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.
chance(number): Read-only. The chance the trap disarm will be successful.
disarmer(tes3mobileNPC): Read-only. The Mobile NPC doing the disarming.
lockData(tes3lockNode): Read-only. The lock data of the reference.
reference(tes3reference): Read-only. The reference that triggered the event (container, door, etc.).
tool(tes3item): Read-only. The item the disarmer is using to disarm the trap.
toolItemData(tes3itemData): Read-only. The item data for the tool.
trapPresent(boolean): Read-only. Indicates if a trap is present on the reference.