Raised This Month: $ Target: $400
 0% 

Handling +use


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
alien
Senior Member
Join Date: Aug 2005
Location: London || Slovakia
Old 09-02-2005 , 07:00  
Reply With Quote #8



I tried. It executes client_PreThink hundred times a second. Thats what I don't want.

Watch this:

Code:
set_task(CHECK_USE_PERIOD, "repeat_check_use", 8138459, "", 0, "b")

It makes repeat_check_use( ) function called every CHECK_USE_PERIOD second. repeat_check_use( ) checks if player's pressing a button. That's what I'm trying to avoid ... because it's useless to check each player repeately whether he is trying to press E on his keyboard, if so, whether he is standing near the button. client_PreThink( ) does the same.

I still believe, there is possibility to invoke an event when player presses USE key, but I have found none in meta game list.

Can you help me?
alien is offline
Send a message via ICQ to alien
 



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


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