I'm using SAS - Sapphire Action System in my project. I recently created a system where the player, after being hit, graphically shows a reaction. Like this: (Click here to watch the GIF).
I increased the time of this "hurt" state, so it lasts longer to reinforce the importance of not being hit. An issue arises because of that, however: for the duration of the state, the player can still attack normally because of the script. I can make so that the player stays with 0 stamina during the state so that when he attacks he deals 0 damage, however, it will still show the animation of the sword being swung, and i don't want that: the player is incapacitated.
So here i pose the question: what can i do with the script to allow me to create a call that cancels then restarts the player ability to attack? I'd be thankful for getting any direction.
I'd deeply appreciate any help! 😀
I increased the time of this "hurt" state, so it lasts longer to reinforce the importance of not being hit. An issue arises because of that, however: for the duration of the state, the player can still attack normally because of the script. I can make so that the player stays with 0 stamina during the state so that when he attacks he deals 0 damage, however, it will still show the animation of the sword being swung, and i don't want that: the player is incapacitated.
So here i pose the question: what can i do with the script to allow me to create a call that cancels then restarts the player ability to attack? I'd be thankful for getting any direction.
I'd deeply appreciate any help! 😀