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)
endEventAuto-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