Make stamina value only drain when sprint button is held and player is moving?

I think you want to do something like check the charactermovementcomponent if accelration is not 0.