[Papyrus] Magic ward stagger an enemy

Post » Mon Jan 02, 2017 9:27 pm

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.

User avatar
tegan fiamengo
 
Posts: 3455
Joined: Mon Jan 29, 2007 9:53 am

Return to V - Skyrim