Hello guys. Can someone tell me how to make an automatic weapon blueprint? I have my weapon that fires a single shot when I press Lmouse button. I put a Do N node before the spawn projectile and set N to 4. But its the same thing, only now I have a magazine with 4 bullets. How do I make my weapon keep firing when I hold down the left mouse button?
Hi pabooklas,
Set a gate before your do N and have a timer fed into the enter input. Your button press should be tied to the “Open” input and release to the “reset” input of the Do N node. This will feed your timer data through your gate to fire the bullets at most 4 times in your case. If you want a fully automatic remove the do n entirely. Further, if you want a multi - burst, what you can do is set up a second timer that specifically is set to reset the do n. That will allow you to shoot 4 times and once the new timer goes off it will reset the do N so you can fire again.
Hello. Thank you for your answer. I haven’t come across gates yet. Ill do a little research while at work and give your suggestion a go when I come home from work. Will post the results. Cheers!