Difference between revisions of "OnMagicEffectApply - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Jlundin
 
imported>Kahmul
Line 12: Line 12:


== Parameters ==
== Parameters ==
*akAggressor: The [[ObjectReference Script|ObjectReference]] that is responsible for the spell.
*akCaster: The [[ObjectReference Script|ObjectReference]] that is responsible for the spell.
*akEffect: The [[MagicEffect Script|MagicEffect]] that is attempting to be applied.
*akEffect: The [[MagicEffect Script|MagicEffect]] that is attempting to be applied.



Revision as of 13:28, 13 March 2012

Member of: ObjectReference Script

Event called when a magic effect is about to be applied to the object reference.

Syntax

Event OnMagicEffectApply(ObjectReference akCaster, MagicEffect akEffect)

Parameters

Examples

Event OnMagicEffectApply(ObjectReference akCaster, MagicEffect akEffect)
  Debug.Trace(akCaster + " applied the " + akEffect + " on us")
EndEvent

See Also