how to write the code Press button E twice?
look title.
thx in advance. |
Re: how to write the code Press button E twice?
in prethink forward you would have to look for a patter like this:
Code:
(new_buttons & IN_USE) && !(old_buttons & IN_USE) |
Re: how to write the code Press button E twice?
Quote:
You should hook Ham_ObjectCaps to detect when use key was pressed. To check if player pressed use key twice, save the gametime of when the player presses the button and compare that to the current gametime to see how long ago it was when player pressed use key. |
Re: how to write the code Press button E twice?
Quote:
|
Re: how to write the code Press button E twice?
Quote:
|
Re: how to write the code Press button E twice?
Quote:
https://forums.alliedmods.net/search...Ham_ObjectCaps Quote:
I have told you what to do and since you are in Scripting Help then you are expected to make it yourself. It's not like I'm telling you how to do something complicated. |
Re: how to write the code Press button E twice?
thank you a lot!!
|
| All times are GMT -4. The time now is 11:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.