Background for Skyrim SE
Member of the ObjectReference script
eventOnWardHit(ObjectReferenceakCaster, SpellakSpell, intaiStatus)

Description

Wiki Description

Event called when the object reference is using a ward that is hit by a spell.

Documentation Comment

Event received when this object's Ward is hit by a spell


Parameters

  1. ObjectReferenceakCaster

    CK Wiki Description

    The ObjectReference that cast as spell at this reference.

  2. SpellakSpell

    CK Wiki Description

    The Spell that hit this reference.

  3. intaiStatus

    CK Wiki Description

    One of the following:* 0 for a friendly spell hit

    • 1 if the ward absorbed the spell
    • 2 if the ward was broken.

Examples

Event OnWardHit(ObjectReference akCaster, Spell akSpell, int aiStatus)
  Debug.Trace("We were hit by " + akSpell + " while having a ward up")
EndEvent

Auto-Generated Example

Scriptname MyCoolScript extends ObjectReference

event OnWardHit(ObjectReference akCaster, Spell akSpell, int aiStatus)
    Debug.trace("Event received - OnWardHit: akCaster = " + akCaster + " akSpell = " + akSpell + " aiStatus = " + aiStatus)
endEvent

Related Pages


Additional References

View this event’s page on the Skyrim Creation Kit Wiki

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