Background for Skyrim SE
Member of the PO3_Events_Form script
eventOnHitEx(ObjectReferenceakAggressor, FormakSource, ProjectileakProjectile, boolabPowerAttack, boolabSneakAttack, boolabBashAttack, boolabHitBlocked)

Description

GitHub Wiki Description (PO3's PE)

  • Registers for hit events provided they match the filters (or not)
  • Script must extend ObjectReference in order to recieve this event
  • See Fallout 4's RegisterForHitEvent for parameter definitions (Aliases are not allowed, only forms)
  • akAggressorFilter also accepts race

Registration Control Functions


Parameters

  1. ObjectReferenceakAggressor

  2. FormakSource

  3. ProjectileakProjectile

  4. boolabPowerAttack

  5. boolabSneakAttack

  6. boolabBashAttack

  7. boolabHitBlocked


Examples

Auto-Generated Example

Scriptname MyCoolScript extends PO3_Events_Form

event OnHitEx(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
    Debug.trace("Event received - OnHitEx: akAggressor = " + akAggressor + " akSource = " + akSource + " akProjectile = " + akProjectile + " abPowerAttack = " + abPowerAttack + " abSneakAttack = " + abSneakAttack + " abBashAttack = " + abBashAttack + " abHitBlocked = " + abHitBlocked)
endEvent

Additional References

View this event on the GitHub Wiki for powerofthree's Papyrus Extender

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.