Hi,
I am using the stop movement animation ability to prevent the player when running into a wall from continuing to run in place. When the stop movement animation ability is active if the player tries running straight into a wall the player stops the run animation and does not move. This all works great; however, I noticed that even though the player is not moving the stamina value is still decreasing in the attribute manager. I tested this in the demo scene and confirmed the same scenario exists there.
How would I prevent the stamina value from decreasing when the stop movement animation ability is active? Does the stop movement animation ability need to tell the character controller that when that ability is active that isMoving should be false? Does the attribute manager need to do a check to see if the stop movement ability is active first before trying to decrease the stamina value?
Any help on this would be greatly appreciated!
Thanks!
I am using the stop movement animation ability to prevent the player when running into a wall from continuing to run in place. When the stop movement animation ability is active if the player tries running straight into a wall the player stops the run animation and does not move. This all works great; however, I noticed that even though the player is not moving the stamina value is still decreasing in the attribute manager. I tested this in the demo scene and confirmed the same scenario exists there.
How would I prevent the stamina value from decreasing when the stop movement animation ability is active? Does the stop movement animation ability need to tell the character controller that when that ability is active that isMoving should be false? Does the attribute manager need to do a check to see if the stop movement ability is active first before trying to decrease the stamina value?
Any help on this would be greatly appreciated!
Thanks!