how to make an event que?

Discussion in 'Mapping Questions & Discussion' started by Shakenbake, Jan 31, 2011.

  1. Shakenbake

    Shakenbake L1: Registered

    Messages:
    3
    Positive Ratings:
    0
    i cant figure out how i would do this. I have 3 buttons the perform 3 different action, and i would like the user to choose 1 of the 3, then the selection will be chosen, but i do not want the corresponding event to occur until a specific time during the map.I can get them to work right when the button is pressed. how would i go about doing this??

    An example of this that i can think of are nade precision maps, you dont get the buffs and stuff until after you get sent to the battle map(in css).
     
  2. nik

    nik L12: Fabulous Member

    Messages:
    987
    Positive Ratings:
    246
    add a value to a math counter when it gets pressed, then add another when you want it to happen, and then have a logic entity fire when the value hits 2 that triggers the event

    that's probably a really bad way, but that's how I would do it
     
  3. Hell-met

    Hell-met L1: Registered

    Messages:
    43
    Positive Ratings:
    8
    as far as I know math_counters don't work well with buttons, since the value gets added even if the player presses the button during its cooldown.
     
  4. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,531
    Use logic_relay entities as an intermediary, have one for each action and all start disabled. Have the button enable it's related relay. When you want the action to happen trigger all the relays and only the enabled one will fire.
     
  5. Shakenbake

    Shakenbake L1: Registered

    Messages:
    3
    Positive Ratings:
    0
    LOL thanks Boojum! i standing in the shower and all of a sudden i thought of exactly what you suggested! I will have to try this out, I might need a little help on how relays work >.<