Difference between revisions of "OnStoryCastMagic - Quest"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Threedee
m (fixed a typo)
imported>Rasikko
(akSpellTarget returns none.)
 
Line 24: Line 24:
endEvent
endEvent
</source>
</source>
== Notes ==
* akSpellTarget always returns none.


== See Also ==
== See Also ==
*[[Quest Script]]
*[[Quest Script]]

Latest revision as of 10:51, 18 March 2019

Member of: Quest Script

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

Syntax[edit | edit source]

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

Parameters[edit | edit source]

  • 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[edit | edit source]

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

Notes[edit | edit source]

  • akSpellTarget always returns none.

See Also[edit | edit source]