getting buttons
Hi all.
What will return pev(index, pev_button) if I'm pressing both IN_USE, IN_ATTACK and IN_FORWARD I mean, will this work: PHP Code:
|
Re: getting buttons
PHP Code:
PHP Code:
And that one : PHP Code:
PHP Code:
|
Re: getting buttons
Quote:
But my question is: Will my code work, because I will use code like that PHP Code:
|
Re: getting buttons
You should have asked with that last code from the beginning then.
Yes your code is ok. |
Re: getting buttons
By the looks of your code, it doesn't look like it will work as intended. You haven't described what your trying to do. However, your code states that if a player is holding IN_USE and IN_ATTACK it will do something. Keep in mind that the player could also be holding any other button at the same time and it would be same result, even IN_ATTACK2.
Quote:
|
| All times are GMT -4. The time now is 10:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.