So currently im developing a top down shooter and I want to implement the functionality so that when rotating the character you are also firing the weapon tom that direction currently I have the rotation logic and I have it firing but as of right now for some reason I cant control the fire rate and I assume it has something to do with how I am handling the rotation and shooting? Is there a better way I should be implementing this? its a mobile game. Below I have linked a video of what I have so far and also the scripts.
Video of the issue (You can see the joystick move but it looks like the weapon is semi firing)
You’ll only be able to fire as fast as it ticks - you could in a blueprint pass the tick into a multigate, say you wanted it to fire every fourth tick (about 15 shots per second I believe) you would trigger the shot on the first output then create 3 blank pins afterwards.
In c++ you could do this quite easily with an tick incremented variable etc etc.
Just be careful as tick time can vary so if you’re looking for a really regular firing pattern you may want to get the delta time and increment a timer (or decrement) depending on how many times a second you want it to fire.