Alternating attribute after set time

I have been stuck on this problem for almost a day and I still have not come up with a solution that I love and feel works. If you have any ideas I would love to listen 
What I am trying to do is after about 30 seconds of a mode- a warm up/training mode- switch to a different mode. Then in this new mode every 10 seconds to change from on to off. The problem is that with the method I am currently using the attribute that is controlling this on/off changes from 0 to 1 and then back to 0 with the %2 trick(@tshirtbooth) however this means that one mode is stuck on during the first 30 seconds and that just doesn't work for my game. Any ideas on how to fix?
Thanks, <><

What I am trying to do is after about 30 seconds of a mode- a warm up/training mode- switch to a different mode. Then in this new mode every 10 seconds to change from on to off. The problem is that with the method I am currently using the attribute that is controlling this on/off changes from 0 to 1 and then back to 0 with the %2 trick(@tshirtbooth) however this means that one mode is stuck on during the first 30 seconds and that just doesn't work for my game. Any ideas on how to fix?
Thanks, <><
Best Answer
-
PsychoticStudios Posts: 101
-Create a boolean attribute (set to false). now make a timer that says after 30 sec change attribute to true.
-Now create a rule which says if attribute (the one you just made) is true and attribute (for gamemode) is 1 then add a timer for every ten seconds change attribute to 0.
-Now create another rule which says if attribute (the one you just made) is true and attribute (for gamemode) is 0 then add a timer for every ten seconds change attribute to 1.
Hope this helps
Answers
Thanks <><