Jump to content

Timed blocking


oyayeboo

Recommended Posts

Hello everyone, i'm trying to mod something in skyrim and stuck with this timed blocks idea (actually i'm trying to increase magic resistance within first second of blocking). How can i catch event of blocking with papyrus? Any help would be great :) thanks
Link to comment
Share on other sites

I just did this myself:

 

For the Animation Enter and Exit Properties use blockStartOut and blockStop

 

Scriptname _BKSM_ShieldBlockEffect extends activemagiceffect  

String Property AnimationEnter  Auto  
String Property AnimationExit Auto

Event OnAnimationEvent(ObjectReference akSource, string asEventName)

if (asEventName == AnimationEnter)
endif

if (asEventName == AnimationExit)
endif

EndEvent

Event OnEffectStart(Actor akTarget, Actor akCaster)

RegisterForAnimationEvent(akTarget, AnimationEnter)
RegisterForAnimationEvent(akTarget, AnimationExit)
Debug.Notification("effect registered")

EndEvent

Event OnEffectFinish(Actor akTarget, Actor akCaster)

UnregisterForAnimationEvent(akTarget, AnimationEnter)
UnregisterForAnimationEvent(akTarget, AnimationExit)
Debug.Notification("effect unregistered")

EndEvent

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...