Jump to content

OnEffectStart not triggering


Catman030

Recommended Posts

So i tried attaching a script to the fire breath shout. One that would add a perk. It looked somthing like this(sorry im on my phone and cant post it as code):

--------------------------------------------------------------------------

Scriptname TestSCRIPT extends activemagiceffect

 

Perk property example auto

 

Event OnEffectStart(Actor akTarget, Actor akCaster)

Debug.notification("script fired")

Game.GetPlayer().addperk(example)

EndEvent

--------------------------------------------------------------------------

 

Now there was more to that script but i ended up simplifying it to about that when i was trying to diagnose the reason why the script wouldnt fire. I attached it to the first effect in the first word of fire breath (the one that isnt the push effect) and after testing i found that the perk would not be added and there was no notification. This leads me to believe that the event never fired. Anyone know whats going on? Btw sorry if this is in the wrong spot.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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