Author Topic: How to make hero hurt while swimming  (Read 112 times)

Porksteak

  • Newbie
  • *
  • Posts: 11
    • View Profile
How to make hero hurt while swimming
« on: June 13, 2018, 05:24:12 pm »
I'm trying to make it so the hero can get hurt while swimming, but whenever he is hurt he goes back to his not swimming animation. I tried making it so that when the state is changed to hurt and his animation was swimming he would instead use a swimming hurt animation but this didn't work.

Diarandor

  • Hero Member
  • *****
  • Posts: 975
  • Cats are cool! (ΦωΦ)
    • View Profile
Re: How to make hero hurt while swimming
« Reply #1 on: June 13, 2018, 08:52:17 pm »
This seems to me an engine limitation, or even a bug.
@Christopho: should we open an issue for this?

It is still doable in Lua with some event (on_animation_changed or on_state_changed).
“If you make people think they're thinking, they'll love you. But if you really make them think, they'll hate you.”