Raised This Month: $ Target: $400
 0% 

Help using Buttons, and using objects


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-05-2010 , 21:41   Help using Buttons, and using objects
Reply With Quote #1

I've a problem using IN_USE button in some cases...

An example:

I'm hooking IN_USE button in CmdStart, and when it is called it is created an 'X' entity, like a rocket. But sometimes when I try to use an object (button, door, anyshit) my hook it's called, and the rocket it's created unusually.

How I can prevent to call this hook ONLY when the user is not using an object?

Thanks.

PD: It can be PreThink, CmdStart or any shit.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross

Last edited by meTaLiCroSS; 07-05-2010 at 21:46.
meTaLiCroSS is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 07-05-2010 , 22:16   Re: Help using Buttons, and using objects
Reply With Quote #2

I would suggest just doing a get_user_aiming check with a short distance to see if there is an entity right there.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-05-2010 , 22:21   Re: Help using Buttons, and using objects
Reply With Quote #3

Quote:
Originally Posted by Emp` View Post
I would suggest just doing a get_user_aiming check with a short distance to see if there is an entity right there.
I was thinking on that, but i don't think that will be a good method.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Reply



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 07:04.


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