- Found in:
- Dylbills PE
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
ObjectReferenceAttacker
ObjectReferenceTarget
FormSource
AmmoakAmmo
ProjectileakProjectile
boolabPowerAttack
boolabSneakAttack
boolabBashAttack
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