This event is raised when determining the block chance for an actor. This does not affect ranged or magic attacks and ignores attacks outside of the normal blocking angles, like being attacked from behind. Blocking is disabled in some situations, like being paralyzed or attacking.
--- @param e calcBlockChanceEventData local function calcBlockChanceCallback(e) end event.register(tes3.event.calcBlockChance, calcBlockChanceCallback)
This event can be filtered based on the
attacker.baseObject 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.
attacker(tes3reference): Read-only. A shortcut to the attacker mobile's reference.
attackerMobile(tes3mobileActor): Read-only. The mobile that is attacking.
blockChance(number): The block chance for the actor. This can be adjusted.
target(tes3reference): Read-only. A shortcut to the target mobile's reference.
targetMobile(tes3mobileActor): Read-only. The mobile that is being attacked.