Passing a conditional property to a script?

Post » Sun Feb 10, 2013 1:35 am

Hello,
I'm making some magiceffect, and using the conditional functions (isblocking, isattacking) to trigger one effect or the other.

But i would like to access IsBlocking from inside my script, and not just in the condition window
There is a section of the tutorial explaining just how to do that: http://www.creationkit.com/Papyrus_Introduction#Example_Script_.28extending_ObjectReference.29

Unfortunately my IsBlocking properties are always 0
Has any of you managed to do that sort of thing?

here is my script

Scriptname sbLockonScript extends activemagiceffect  conditionalSpell Property selfspell AutoSpell Property targettedspell Autoint Property  IsBlocking auto conditionalint Property  IsCasting auto conditionalint Property  IsAttacking auto conditionalEvent OnEffectStart(Actor akTarget, Actor akCaster)debug.notification(IsBlocking + "." + IsAttacking + "." + IsCasting)Endevent
User avatar
Lucky Boy
 
Posts: 3378
Joined: Wed Jun 06, 2007 6:26 pm

Return to V - Skyrim