OnWardHit - ObjectReference

From the CreationKit Wiki
Revision as of 19:02, 24 October 2011 by imported>Jlundin
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: ObjectReference Script

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

Syntax[edit | edit source]

Event OnWardHit(ObjectReference akCaster, Spell akSpell, int aiStatus)

Parameters[edit | edit source]

  • akCaster: The ObjectReference that cast as spell at this reference.
  • akSpell: The Spell that hit this reference.
  • aiStatus: One of the following:
    • 0 for a friendly spell hit
    • 1 if the ward absorbed the spell
    • 2 if the ward was broken.

Examples[edit | edit source]

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

See Also[edit | edit source]