How to make hero hurt while swimming

Started by Porksteak, June 13, 2018, 05:24:12 PM

Previous topic - Next topic
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.

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."