logic_timer Random Questions

Discussion in 'Mapping Questions & Discussion' started by Stickeyjam, Jul 28, 2011.

  1. Stickeyjam

    Stickeyjam L2: Junior Member

    Messages:
    52
    Positive Ratings:
    1
    I have a bunch of env_explosions placed around my map that I want to go off seperately at random times. I am currently using 1 logic_timer for each env_explosion but was wondering if there was a way to maybe use just 1 logic_timer to do this? I don't think there is but i'd thought i'd ask :)
     
  2. Shanghai

    Shanghai L6: Sharp Member

    Messages:
    394
    Positive Ratings:
    217
    1 timer with a bunch of logic_relay's might work, though it might just make all the explosions go off at once.
     
  3. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,521
    I'm guessing you are already using the "random time" function of the logic_timer? I don't know how many "a bunch" is, but logic_case can support up to 16 outputs that can be randomized.

    All you need to do is put in an OnCase## output for each of your explosions, then have the timer send PickRandom to the logic_case and it will select a random output that has links and fire it. The PickRandomShuffle inputs ensures each individual output is fired once before any are repeated.

    If you have more than 16 explosions, you can either chain the logic_case (one case that picks between two other cases, which then pick the explosion), or just have another timer and case.
     
    • Thanks Thanks x 1
  4. Stickeyjam

    Stickeyjam L2: Junior Member

    Messages:
    52
    Positive Ratings:
    1
    I have about 7 explosions so that would work perfectly! Thanks for the help.
     
  5. GreenLemon

    GreenLemon L1: Registered

    Messages:
    30
    Positive Ratings:
    3
    use the FireUser OnUser system , you send 1 output FireUser , and multiple OnUser recive it , and you can put delay on each of the OnUser
     
  6. Vel0city

    aa Vel0city personal pick-pocketing parrot

    Messages:
    1,883
    Positive Ratings:
    1,488
    Sir.

    Look at the last reply date next time please before posting. Like, how did you find this 6 year old thread in the first place?
     
  7. GreenLemon

    GreenLemon L1: Registered

    Messages:
    30
    Positive Ratings:
    3
    ha ... surprise to me too ...