0
votes

Is there anyone that knows how you can apply a time delay to a traffic light for a single phase only? Or a time offset? The delay function is not available for the traffic light class. Also turnOn and turnOff functions, even timed, do not offset the timing of the traffic light. Keep in mind that the "On Phase Change" functions do not target a specific phase of the light, but work in a global loop on all the phases.

Thanks, Octav

1

1 Answers

0
votes

You can define all phases as having infinite duration and control your delays using the function switchToNextPhase()

With this you have absolute control of your traffic light delays and you can skip a phase or multiple phases by using the switchToNextPhase() many times in a row.