Background for Skyrim SE
Member of the DbSkseEvents script
eventOnHitGlobal(ObjectReferenceAttacker, ObjectReferenceTarget, FormSource, AmmoakAmmo, ProjectileakProjectile, boolabPowerAttack, boolabSneakAttack, boolabBashAttack, boolabHitBlocked)

Description

Documentation Comment

note that OnHitGlobal sends Ammo as well as projectile.
This is because the projectile in this event is bugged, it doesn't detect reliably.
This sends the Ammo the attacker has equipped if the Source is a bow or crossbow.


Parameters

  1. ObjectReferenceAttacker

  2. ObjectReferenceTarget

  3. FormSource

  4. AmmoakAmmo

  5. ProjectileakProjectile

  6. boolabPowerAttack

  7. boolabSneakAttack

  8. boolabBashAttack

  9. boolabHitBlocked


Examples

Auto-Generated Example

Scriptname MyCoolScript extends DbSkseEvents

event OnHitGlobal(ObjectReference Attacker, ObjectReference Target, Form Source, Ammo akAmmo, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
    Debug.trace("Event received - OnHitGlobal: Attacker = " + Attacker + " Target = " + Target + " Source = " + Source + " akAmmo = " + akAmmo + " akProjectile = " + akProjectile + " abPowerAttack = " + abPowerAttack + " abSneakAttack = " + abSneakAttack + " abBashAttack = " + abBashAttack + " abHitBlocked = " + abHitBlocked)
endEvent
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.