I am currently doing some turrets, with a simple behavior (if a target enter the range, the turret fires), and I am encountering a problem. I had trouble setting up a function that can repeat as long as the target is in range, and for the moment I am using a gate. The turret can have multiple barrels, so I’m using a forloop with an array of all the socket names corresponding to the barrels. If I put a printstring after this forloop, I can see it works perfectly great, the prints are display in the number of my array, and at the fire rate I want. However, if I plug a spawn actor to spawn my projectile, the function works one times, and does not reapeat anymore. Is this a bug with the spawn actor ? I know for sure it’s not a limitation, because i tried bypassing my forloop in order to spawn only one projectile, and it stop after the first fire.
Yup, that was it. Stupid mistake on my side. Thanks for the quick answer
I followed you sugestion, and left Fasle empty. I did it in order to be sure that the turret would not start firing when anything else than an ennemy entered the zone, it might be stupid ^^’