I/O confusion.

Discussion in 'Mapping Questions & Discussion' started by Tango, Oct 8, 2017.

?

Rural or Urban? Where do you live?

  1. Urban

    25.0%
  2. Rural

    50.0%
  3. I don't even know, I rarely go outside.

    25.0%
  1. Tango

    Tango L3: Member

    Messages:
    133
    Positive Ratings:
    70
    I'm trying to make events happen based on variables, (like # of players etc) but how would I make a event random? Like pick from 1 - 10 and (1 being A and two being B) so I could have random outputs? Im just wondering, if anybody knows that would be very helpful.
     
  2. Lampenpam

    aa Lampenpam

    Messages:
    1,019
    Positive Ratings:
    337
    https://developer.valvesoftware.com/wiki/Logic_case

    So if you want to open one of three doors randomly you should give the logic-case these outputs:

    OnCase01 - door1 - Open
    OnCase02 - door2 - Open
    OnCase03 - door3 - Open

    Now give the logic case either an PickRandom or PickRandomShuffle input and it will fire one of the three outputs to open on of the three doors.
     
    • Agree Agree x 2