Quote:
Originally Posted by fysiks
in prethink forward you would have to look for a patter like this:
Code:
(new_buttons & IN_USE) && !(old_buttons & IN_USE)
!(new_buttons & IN_USE) && (old_buttons & IN_USE)
(new_buttons & IN_USE) && !(old_buttons & IN_USE)
!(new_buttons & IN_USE) && (old_buttons & IN_USE)
Search the scripting forum for code that shows you how to detect the +use button then modify it. You will need to put in a time check to see if the two button presses were close together (in time).
|
Terrible method.
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.
__________________