16.04.2015, 18:24
Hello,
So I have a script with a fire extinguisher and a variable.
Now I created a function that will mimic the ammo of the fire ex. in the variable. But here is the problem:
The variable gets updated when I release the fire key, although I want it to be updated every second or so while holding the fire key.
Any ideas?
So I have a script with a fire extinguisher and a variable.
Now I created a function that will mimic the ammo of the fire ex. in the variable. But here is the problem:
The variable gets updated when I release the fire key, although I want it to be updated every second or so while holding the fire key.
Any ideas?