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

Description

Documentation Comment

Event received when this object is hit by a source (weapon, spell, explosion) or projectile attack


Parameters

ObjectReferenceakAggressor

FormakSource

ProjectileakProjectile

boolabPowerAttack

boolabSneakAttack

boolabBashAttack

boolabHitBlocked


Examples

Auto-Generated Example

Scriptname MyCoolScript extends ReferenceAlias

event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
    Debug.trace("Event received - OnHit: akAggressor = " + akAggressor + " akSource = " + akSource + " 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.