Quote:
Originally Posted by Misiur
Yup, you need timer though
1. When key gets pressed, start a (repeating) timer to decrease amount of "ammo" left
2. When it gets released, or there is no ammo left, stop the timer.
|
Could you elaborate on this? As the script inside the function seems to get executed when you release the keys.