AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How long a user is holding a button? (https://forums.alliedmods.net/showthread.php?t=10952)

KCE 03-05-2005 20:55

How long a user is holding a button?
 
How do I check how long a user is holding a button and also if they are holding both the use button (e) and the crouch button (ctrl)?

XxAvalanchexX 03-06-2005 13:17

Code:
new button = get_user_button(id); if( (button & IN_USE) && (button & IN_DUCK) ) {      // they are crouching and using }


All times are GMT -4. The time now is 14:11.

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