[Solved] Object Timer Bug

Edit: if I delete the “trigger once” inside the Object loop, it works correctly. I don’t know why.

so in this example The timers do not work correctly, the Enemy Object should be created every 1, 2 and 3 seconds but it only goes to the 2. second and stops. When i change the timer from 2 to 2.1 it works correctly. when I set the timers to 1.1, 1.2 and 1.3 it works for a couple seconds and stops. I tried more combinations, sometimes it works, sometimes it stops randomly.

For reference: Trigger once does what it says. Triggers once.
This means in a “for each” loop, it only triggers once for the first instance of the object. There is not currently a way to make “Trigger once” work on each instance. You’re better off using a boolean variable and toggling it instead if you’re needing something like that in a “for each”.

However, there’s no need for a trigger once since you’re already resetting the timer once you hit your condition, so it should work fine.

2 Likes