This event is raised just after determining which armor piece, if any, was hit with an attack. The slots can be modified, to draw focus onto specific armor slots.
The following table is used by default to determine what armor piece is hit:
|90-94||Right Gauntlet||Right Bracer|
|95-100||Left Gauntlet||Left Bracer|
--- @param e calcArmorPieceHitEventData local function calcArmorPieceHitCallback(e) end event.register(tes3.event.calcArmorPieceHit, calcArmorPieceHitCallback)
This event can be filtered based on the
reference.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 who is doing the hitting.
fallback(number): A secondary slot to check for equipment on, if no armor is found using the primary slot.
mobile(tes3mobileActor): Read-only. The mobile who is being hit.
projectile(tes3mobileProjectile, nil): Read-only. The projectile used that is hitting the given reference. This is nil for all melee combat.
reference(tes3reference): Read-only. A shortcut to the mobile's reference.
slot(number): The primary slot that is targeted.