11.08.2012, 12:32
If I'm not wrong, OnPlayerUpdate is called even when you're not moving anything, but less times. So, that's the reason why your variable is set to 0 again and again.
A suggestion, you should check player animation for that, and if it's the same as the last time count up. I think the anim is called crry_prtial, from CARRY library.
Good luck!
A suggestion, you should check player animation for that, and if it's the same as the last time count up. I think the anim is called crry_prtial, from CARRY library.
Good luck!