Changing key values with trigger outputs

Discussion in 'Mapping Questions & Discussion' started by russtolium, May 27, 2008.

  1. russtolium

    russtolium L1: Registered

    Messages:
    15
    Positive Ratings:
    0
    Hello! I'm getting my feet wet with entities and I/O fun and I'm trying to figure out if this is possible:

    I have a trigger brush. (A)
    I have a trigger capture zone brush. (B)

    Basically, I'm trying to make an output for (A) to (B) that will change the 'Time to cap (sec)' key value.

    So, say when you touch (A), an output changes the value of the 'Time to cap (sec)' value from 10 seconds to 20.

    Is this possible? Do I need to bring other entities into the mix? I tried just typing the key value into the input field for A's output, but it didn't seem to have any effect.
     
  2. Pseudo

    Pseudo L6: Sharp Member

    Messages:
    319
    Positive Ratings:
    149
    You can change any keyvalue by using the "AddOutput" input. The parameter is in the format <key> <value>. So the parameter would be "area_time_to_cap 20" to change it to 20 seconds.

    Another way would be to have multiple trigger_capture_area with different time settings. All except one would start disabled. You could then Enable and Disable them as needed.
     
    • Thanks Thanks x 1
  3. russtolium

    russtolium L1: Registered

    Messages:
    15
    Positive Ratings:
    0
    Awesome! That worked perfectly. This opens up a lot of possibilities. Thanks!