Is there a way to attach OnHit() on all Actors involved into a fight with the player?
Example:
Scriptnameextends >Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked) Actor akAttacker = (akAggressor as actor) Actor akTarget = akAttacker.GetCombatTarget() If (akAttacker != None && akTarget != None) If (abHitBlocked == 0) If (itemType != 9) If (abBashAttack == true) aktarget.DamageAV(" ", ) ElseIf (abPowerAttack == true) aktarget.DamageAV(" ", ) EndIf If (akTarget == Game.GetPlayer()) Debug.Notification("Player got hit...") Else Debug.Notification("Someone got hit, but it's not the Player...") EndIf EndIf EndIf EndIfEndEvent
I know how to "attach" OnHit() event to the player (with aliases), but it will trigger only when the player get hit (logic).. now, what I want is to attach the OnHit to everyone so it trigger when the player get hit AND when the player hit someone.
Any idea?

