When a keydown() is used in a timeout it can just be held and it will do the action for you. How do I eliminate this? Just in case I'm not clear since I'm half-delusional from sleep and am not even reading while I type, here's an example:
PHP Code:
//#CLIENTSIDE
function onTimeOut() {
if ( keyDown( 5 ) ) {
foobar;
}
setTimer( 0.05 );
}
So, yeah. I just want to know how to make so the player must tap the key to get repeated use out of it.