OnSpellCast - ObjectReference
From Creation Kit
Member of: ObjectReference Script
Event called when a spell is cast by this object reference.
Event OnSpellCast(Form akSpell)
Event OnSpellCast(Form akSpell) Spell spellCast = akSpell as Spell if spellCast && spellCast == FireballSpell Debug.Trace("We just cast a fireball!") else Debug.Trace("We cast something, but we don't know what it is") endIf endEvent
- For concentration spells, this event only fires once, at the moment the reference begins casting.