Raised This Month: $ Target: $400
 0% 

Detecting a button press (not a key press)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MALON
Member
Join Date: Jan 2008
Old 09-07-2008 , 20:14   Detecting a button press (not a key press)
Reply With Quote #1

I know there are other threads out there, but I'm getting a bit overwhelmed with them. I'm not sure which to use.

Basically, what's the proper way to detect a button press? Like an ingame button (specifically a kz button).

Currently I am using an EmitSound forward and when the button makes the normal button sound, it triggers my start function.

Is this the best way? Somehow, hooking a sound forward doesn't seem like the best way. I'd think it should be in a client_prethink perhaps.

If you suggest another method other than using sound, I'd appreciate maybe a little snippet.

Thanks guys.

--MALON
MALON is offline
 



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 03:14.


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