Flashing lights

Haggis

L2: Junior Member
Jan 19, 2009
86
1
I managed to get my trains working perfectly(a previous post),now i am trying to do flashing lights before the train comes and keep them flashing untill the train dissappears .I copied what valve did in cp_well map,they used env_sprite with a logic_relay to trigger the lights.I have manged to get the top 1 flashing on and off then the 1 below flashes on and off but then it stops.How do you get them to keep flashing on and off.
 
Jan 31, 2008
555
1,482
You can have two relays that triggers eachother in an infinite loop.
Psuedo output code:

relay_1:
OnTrigger -> sprites -> Toggle
OnTrigger -> relay_2

relay_2:
OnTrigger -> relay_1 -> -1 -> 2
 

Haggis

L2: Junior Member
Jan 19, 2009
86
1
relay_2:
OnTrigger -> relay_1 -> -1 -> 2

Sorry i dont understand the -1 2 bit you have written

WOW,that was a marathon,lol,but i have eventually figured it out and i now have flashing lights to warn that a train is coming and they switch off when the train has stopped.
 
Last edited: