Hi everyone !
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.
Here is the full blueprint for the turret : Actor spawn stops blueprint posted by anonymous | blueprintUE | PasteBin For Unreal Engine
Thanks for any help or insight that could come,
Have a nice day !