I made streetlights, but they doesn’t work as i have written.
On map start it’s good - red light is on and axis can’t activate.
But when allies activate yellow and green won’t show up.
lightsbutton
{
spawn
{
accum 0 set 1
wait 500
}
activate axis
{
accum 0 abort_if_equal 1
accum 0 set 1
wait 1000
setstate greenlight invisible
wait 1000
setstate yellowlight default
wait 1000
setstate yellowlight invisible
setstate redlight default
wait 500
}
activate allies
{
accum 0 abort_if_equal 0
accum 0 set 0
wait 1000
setstate redlight invisible
wait 1000
setstate yellowlight default
wait 1000
setstate yellowlight invisible
setstate greenlight default
wait 500
}
}
What’s wrong with it?
