hey
in my opinion, the best practice for this is to use a set timer by event and you start the timer after stop sprinting (you can delay 1 sec then start the timer so it won’t regain stm instantly)
and then when you start sprinting again clear the timer handler
that’s how I would do it. but still, I’m not so sure that it’s the best practice for it so I would recommend doing some searching just to make sure that it’s the best way