Background for Skyrim SE
Member of the ObjectReference script
eventOnSpellCast(FormakSpell)

Description

Wiki Description

Event called when a spell is cast by this object reference.

Documentation Comment

Event received when a spell is cast by this object


Caveats

CK Wiki - Notes

  • For concentration spells, this event only fires once, at the moment the reference begins casting.
  • This function does not appear to detect spells cast via Papyrus (e.g. TempleBlessingScript casts its spell on the player from the player, but the event is not caught).
  • This Event can also be used to detect shouts cast by the player, but unlike spells, akSpell must be assigned to a shout.

Parameters

  1. FormakSpell

    CK Wiki Description

    Spell that was cast. Can be Spell, Enchantment, Potion, or Ingredient.


Examples

No human-generated examples found for this event.

Auto-Generated Example

Scriptname MyCoolScript extends ObjectReference

event OnSpellCast(Form akSpell)
    Debug.trace("Event received - OnSpellCast: akSpell = " + akSpell)
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.