Assigning a targetname to a player via AddOutput?

Discussion in 'Mapping Questions & Discussion' started by VenomAK, Aug 12, 2011.

  1. VenomAK

    VenomAK L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    I'm working on a map and what's troubling me is that I'm trying to make it so if a player touches a trigger, the trigger then does AddOutput on the !activator using the parameter "targetname chosenred" (which has worked in the past). I stopped mapping for a while and came back to it, and tried this method and for some reason I keep getting this error...

    I've tried it like this:
    OnStartTouch !activator,AddOutput,targetname chosenred,0,1

    Is that correct or am I doing something wrong? I'd really appreciate some help.
     
  2. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,527
    Column 1 Column 2 Column 3 Column 4
    Output Target Input Parameter
    OnTrigger !activator AddOutput targetname chosenred


    That's how it should be put into the entity properties, I'm not sure if you said you tried that first, and the second thing was another try? But anyway that should work.
     
  3. VenomAK

    VenomAK L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    Yes I tried that but not with OnTrigger it seems that with any other output it doesn't work. Just tried it with OnTrigger and it works perfectly. Thank you for the help.
     
  4. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,527
    I didn't even notice that, actually. I just copied the table from another post where I had used OnTrigger. It should work with any output, as I have used it in the past. But if OnTrigger suits your needs then great.