Background for Skyrim SE
Member of the Quest script
eventOnStoryCastMagic(ObjectReferenceakCastingActor, ObjectReferenceakSpellTarget, LocationakLocation, FormakSpell)

Description

Wiki Description

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


Caveats

CK Wiki - Notes

  • akSpellTarget always returns none.

Parameters

ObjectReferenceakCastingActor

CK Wiki Description

The ObjectReference that cast the spell.

ObjectReferenceakSpellTarget

CK Wiki Description

The ObjectReference that is targeted by the spell.

LocationakLocation

CK Wiki Description

The Location the spell was cast.

FormakSpell

CK Wiki Description

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

Auto-Generated Example

Scriptname MyCoolScript extends Quest

event OnStoryCastMagic(ObjectReference akCastingActor, ObjectReference akSpellTarget, Location akLocation, Form akSpell)
    Debug.trace("Event received - OnStoryCastMagic: akCastingActor = " + akCastingActor + " akSpellTarget = " + akSpellTarget + " akLocation = " + akLocation + " 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.