Detecting double press
Hi, I'm working on a Sprint plugin. When someone double-taps the forward button, he will run faster for a few seconds. The problem is, I want to set the time between first tap and second tap less than a second. But the systime unit is second. Is there any way to detect faster double taps ?
Set task can work, but I think it will be unefficient since I'm working with prethink |
Re: Detecting double press
Try get_gametime
|
Re: Detecting double press
I've just realized get_gametime returns float number :) thanks, solved.
|
| All times are GMT -4. The time now is 23:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.