Multiply the bolded function with your throttle input: floor(smooth(clamp01(ceil(Throttle)), Throttle ? 1 / 10 : pow(10,10)))
.
The 1/10 value should make a delay of 10 seconds. Feel free to edit this value if it doesn't give the proper delay.
.
The pow(10,10) is just a large number to make the smooth function return to zero instantaneously (so the delay only goes one way).
.
This is a fairly new technique that I have yet to post!
.
IMPORTANT EDIT: I added a ceil() to the throttle to make the delay uniform between all throttle inputs. Please use the updated expression as is currently displayed in this comment!
@ChisP Ok!
@rexzion I figured it out I used the whole ammo("name")=0 thing
Hope this helps!
@ChisP In XML go to the "group" and on the input section write " FireGuns " instead of an activation group number.
Most likely replace the 1/10 with 1/60 for that delay.
So what would a 60 second delay look like@spefyjerbf
How do I have a detacher detach something when I hit fire weapons for it?
I have a question as well
H o w d o t h e t r e e b e s o f u n k y
Multiply the bolded function with your throttle input: floor(smooth(clamp01(ceil(Throttle)), Throttle ? 1 / 10 : pow(10,10)))
.
The 1/10 value should make a delay of 10 seconds. Feel free to edit this value if it doesn't give the proper delay.
.
The pow(10,10) is just a large number to make the smooth function return to zero instantaneously (so the delay only goes one way).
.
This is a fairly new technique that I have yet to post!
.
IMPORTANT EDIT: I added a ceil() to the throttle to make the delay uniform between all throttle inputs. Please use the updated expression as is currently displayed in this comment!