Jump to content

Please help with controlling onHit Events and changing states


leron9999

Recommended Posts

Hi guys. I'll head straight to the point. I'm currently trying to make different effects based on the state of the target. This means that I use the onHit event and within it, I use the GoToState function. This works somewhat, but the thing is, the onHit Event keeps firing even though I'm supposed to be in a new state already (and with a different set of behavior for its own onHit event). I tried using the version method, but that either gets me stuck on the first state or doesn't work at all. I also tried using while loops to control it, and while it's more successful, I still get stuck on the first state. I tried using the removeSpell then addSpell functions rather than states, but that has some very unpredictable results. Any tips on how to better control onHit events would help immensely.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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