I needed to add the Trigger once event where im creating the two objects but then the code just stops working when wave 1 is finished and waveend gets set back to 0 it does not run waveend again…
if i remove that trigger once event then it all works but then its constantly creating those objects over and over when its running the waveend code. (trigger event in question is the one under my cursor)