Raised This Month: $ Target: $400
 0% 

Detecting double press


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 10-25-2013 , 08:44   Detecting double press
Reply With Quote #1

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
akcaliberg is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-25-2013 , 09:13   Re: Detecting double press
Reply With Quote #2

Try get_gametime
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 10-25-2013 , 16:43   Re: Detecting double press
Reply With Quote #3

I've just realized get_gametime returns float number thanks, solved.
akcaliberg is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode