I want stagger an enemy that hit a ward used by an actor with a script.
Here is my code:
Scriptname MAD_WardStaggerScript extends ActiveMagicEffect
Spell Property MAD_WardStaggerSpell Auto
Event OnEffectStart(Actor akTarget, Actor akCaster)
akTarget.AddSpell(MAD_WardStaggerSpell)
EndEvent
Event OnEffectFinish(Actor akTarget, Actor akCaster)
akTarget.RemoveSpell(MAD_WardStaggerSpell)
EndEvent
MAD_WardStaggerScript has a stagger archetype and this script is attached to LesserWard, SteadfastWard and GreaterWard active effects.
I need to know if this is a good way to stagger an enemy using a ward.