This event fires when a lock is being picked.
--- @param e lockPickEventData local function lockPickCallback(e) end event.register(tes3.event.lockPick, lockPickCallback)
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 lockpick will be successful.
lockData(tes3lockNode): Read-only. The lock data of the reference.
lockPresent(boolean): Read-only. Indicates if a lock is present on the reference.
picker(tes3mobileNPC): Read-only. The Mobile NPC doing the disarming.
reference(tes3reference): Read-only. The reference that triggered the event (container, door, etc.).
tool(tes3item): Read-only. The item the picker is using to pick the lock.
toolItemData(tes3itemData): Read-only. The item data for the tool.