Mod:Creation Kit/OnHit - ScriptObject

Mod:Creation Kit/Category:Scripting Mod:Creation Kit/Category:Papyrus Mod:Creation Kit/Category:Events Member of: Mod:Creation Kit/ScriptObject Script

Event called when a target is hit by a weapon or projectile.

This event will only be sent to the specific script that registered for it. Other scripts attached to the same form/alias/active magic effect will not receive the event unless they also register.

Parameters

 * akTarget: The ObjectReference
 * akAggressor: The ObjectReference that attacked this reference.
 * akSource: The Weapon, Spell, Explosion, Ingredient, Potion, or Enchantment that hit this reference.
 * akProjectile: The Projectile that hit this reference.
 * abPowerAttack: Was the hit caused by a power attack?
 * abSneakAttack: Was the hit caused by a sneak attack?
 * abBashAttack: Was the hit caused by a bash attack?
 * abHitBlocked: Was the hit blocked?
 * apMaterial: Material name where this object was hit. Used for specific script reactions to different hit locations.