Online Tutorial Model
Download Model (MiceOnABeam v1.0.3)
The touch_end event toggles between the Off and the composite On state to turn the light on and off.
The On state consists of three substates which transition between each other by an ongoing timer, changing the light's color on each transition.
The Off Exit Point leads to a Group Transition (outside of state) which will trigger when the script is in any of the three substates.