The reason I do not like this is because I want to make the Fire Rate a float variable, and currently I change the Fire Rate by adjusting the delay on the tick. For example 0.1 delay.
If I make it a variable, it will have to match the delay… And I do not want my hud to say 0.5… 0.1… 0.001, just to satisfy the delay.
I want the Fire Rate float to be like 1 or 50. I do not want to use the event tick and delay. Is there any alternatives?
Hi , not sure if I understood what you want but here’s a very basic auto fire system.
If you set the fire rate to 1 for example, your FireOnce event will be fired every 1s.
Lemme know if you need more explanations.
Okay, I managed to use this with my Function, but I still have to use small values like 0.1 for a fast fire rate, anyway is there a way I can make for example 0.1 = 50. 0.05 = 100… etc? So it can show on the HUD as such?
if you want your variable to be larger numbers the just multiply the variable by a small number (10 * 0.01). do the multiplication between the variable and the timer node as shown in the picture above. This way you can have a large number as the variable but the script still functions the same.
Yeah you can take this float and format it as you want for your UI. Realistic fire rates are between 0.1 / 0.3 I guess so you can just multiply it by 10 and it will give you better looking numbers for your players