Author Topic: Traffic Lights Script [V2]  (Read 12594 times)

Traffic Lights V2

Description:
This mod allows you to have fully functional traffic lights without any messy relay events!

Usage:
Name your traffic lights (bricks) correspondingly:
-goLights1
-slowLights1
-stopLights1
-goLights2
-slowLights2
-stopLights2
The 1 lights will turn red as the 2 lights turn green, and vice versa.

Commands:
/toggleTrafficLights: Admin only, turns on/off mod.
/setLightInterval: Admin only, must be greater than 10. Sets the interval for green lights, in seconds.



Updates:
-Cleaned up a bit of code.
-Added isObject checks to avoid console spam.

Download

IF YOU FIND A BUG: please stick it in my PM box!
« Last Edit: November 24, 2009, 10:54:19 PM by cucumberdude »

hai dere Cuc.
anyways, so if i get this straight, the lights change every x seconds or so?

Hai.
And yus.
NINJA EDIT: But there's also a short time where the light turns orange/yellow.


Don't say sorry to me, say sorry to the rest of the community and lock the topic before you get flamed to death!





i like it but i dont understand how to use

i like it but i dont understand how to use

Read the instructions carefully.

understand now but it only makes 2 traffic lights go green and red

This is an easy way of how to do this. Even if there is ways of improving it dramatically, I encourage you to keep up the good work.

Heck, I could just make a traffic light using EVENTS! Ever heard of relays...?

Heck, I could just make a traffic light using EVENTS! Ever heard of relays...?
dumbass