OnStoryCastMagic - Quest

From Creation Kit
Revision as of 2019-03-18T10:51:48 by Rasikko (Talk | contribs) (akSpellTarget returns none.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Member of: Quest Script

Event called when this quest is started via a cast magic story manager event.

Syntax

Event OnStoryCastMagic(ObjectReference akCastingActor, ObjectReference akSpellTarget, Location akLocation, Form akSpell)

Parameters

  • akCastingActor: The ObjectReference that cast the spell.
  • akSpellTarget: The ObjectReference that is targeted by the spell.
  • akLocation: The Location the spell was cast.
  • akSpell: The spell that was cast.

Examples

Event OnStoryCastMagic(ObjectReference akCastingActor, ObjectReference akSpellTarget, Location akLocation, Form akSpell)
  Debug.Trace(akSpell + " was cast by " + akCastingActor + " at " + akSpellTarget)
endEvent

Notes

  • akSpellTarget always returns none.

See Also