Coming back from about a year's worth of no work with Construct, my Construct-fu seems to be a little rusty and I can't figure out what to do with the following coding dilemma.
Basically I'm trying to get an enemy to shoot in bursts when the player is in range, thus the enemy has turret behavior and "On Shoot" plays its shooting animation. The animation repeats 3 times and with every repetition fires a shot. Problem is that unless I use the "Trigger once while true" condition, the system will make more than one bullet spawn when the animation hits the appropriate frame. However, simply using this condition of course causes problems when numerous enemies are shooting simultaneously because some of them won't fire since the condition being true for one enemy overrides another's shooting sequence.
I tried sticking a "For Every Object" loop for the enemies and this seems to alleviate the problem somewhat, but the problem still crops up quite often. I've also tried playing around with the order of the conditions and tried using "Pick Object" commands but still can't seem to get it to work as intended. How would I go about coding something like this?
Here is a picture of the events in their current state: