Simple Turret Behavior

I guess I know.

When your projectile spawns, it overlaps the sphere. And since it doesn’t have the “ennemy” tag, the gate closes.

Change the collision presets for the sphere not to react to the projectile.

Edit: I think you should leave the False empty. There’s really no need to close the gate On Begin Overlap like ever.

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 !

Yup, that was it. Stupid mistake on my side. Thanks for the quick answer :slight_smile:
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 ^^’