Create a Script to handle it
(instance MyScript of Script
(properties)
(method(changeState newState)
= state NewState
(switch(state)
(case 0
(send gEgo:setCycle(Fwd))
//set number of cycles to wait before next state//
= cycles 10 //10 = number of cels in loop//
)
(case 1
Print("I'm Back!")
)
)
)
Then when you want to activate the script, say in your initialization code.
(MyScript:changeState(0))
There may be a better way, but I am sure this works.