Flashing lights

Discussion in 'Mapping Questions & Discussion' started by Haggis, Jan 24, 2009.

  1. Haggis

    Haggis L2: Junior Member

    Messages:
    86
    Positive Ratings:
    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.
     
  2. Acegikmo

    aa Acegikmo

    Messages:
    555
    Positive Ratings:
    491
    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
     
  3. Haggis

    Haggis L2: Junior Member

    Messages:
    86
    Positive Ratings:
    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: Jan 24, 2009
  4. Nosher

    Nosher L4: Comfortable Member

    Messages:
    184
    Positive Ratings:
    20
    Haggis - care to share?

    I do not have a decompiled Well! :(

    Cheers
    Nosh
     
  5. ClydeJr

    ClydeJr L1: Registered

    Messages:
    20
    Positive Ratings:
    4
    Check the stickied posts at the top of the forum. One of them has links to decompiled versions of all the official maps.