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