Trigger hurt message

Discussion in 'Mapping Questions & Discussion' started by TravisTouchdown, Aug 15, 2015.

  1. TravisTouchdown

    TravisTouchdown L2: Junior Member

    Messages:
    67
    Positive Ratings:
    5
    I would like to know how to make a message display after someone is killed by a trigger hurt. Is there a way to do this. I dont mind if its just the dead guy or the team or the entire server, I just want a message to be displayed.
     
  2. Izotope

    aa Izotope Never releases maps

    Messages:
    592
    Positive Ratings:
    539
    OnStartTouch -> env_text -> Display

    Make a env_text entity and put in whatever text you want to be displayed.
     
    • Thanks Thanks x 2
  3. Egan

    aa Egan

    Messages:
    1,302
    Positive Ratings:
    1,478
    I think Izo was thinking of game_text.

    Can see (and ctrl+f to find keywords) full list of base entities here and tf2 entities here.
     
    • Thanks Thanks x 2
  4. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    931
    Positive Ratings:
    894
    It is advised not to use game_text_tf as it won't show up in minimal HUD mode.
     
    • Thanks Thanks x 1
  5. TravisTouchdown

    TravisTouchdown L2: Junior Member

    Messages:
    67
    Positive Ratings:
    5
    1. I make a game_text with the message I want displayed.
    2. ON my trigger_hurt I make an output and make it onstarttouch
    3. I make the target entity my env_text
    4. I make the target input be set to display.



    Yes thank you all. This works great now. I will have to toy around with the text and its color.

    What I done was set a sign that says no swimming and if you jump into the lake anyways you are killed with a message that says the rocks are sharp.
     
  6. Lampenpam

    aa Lampenpam

    Messages:
    991
    Positive Ratings:
    328
    If you want the text displayed only to the killed player (as in the player who started the Input/output chain) Uncheck the the "all players" flag of the game_text
     
    • Thanks Thanks x 2