[Hammer] Inside of an area = Display text

By BlahBerrys 1 year ago

I need somehow that basically when a button is pressed anyone within a selected distance, like maybe inside of a trigger area, a message is displayed on their screen. ALSO, anyway I can get like a model of an actual portal from portal 1/2?

3 posts 380 views
  • You must be a member

Replies

  • J.4.C.K.8's Levels
    • P3: Peasant
      Points: 19,643
    • E2: Guide
      EF: 20
    • C2: Treehouse Member
    • A5: Veteran
      Account Age: 5 years
    Username
    J.4.C.K.8
    Posted 1 year ago

    This or this? Not sure if either can be toggled by a button. Also is the map for TF2? Buttons don't work in TF2 unless set to activate via another method, ie. when shot.

    As for the Portal model, that may be a texture or effect, I don't think it's a model...but I could be wrong.

    User Title
  • UNREA1's Levels
    • P4: Worker
      Points: 39,417
    • E1: Helper
      EF: 3
    • C2: Treehouse Member
    • A5: Veteran
      Account Age: 5 years
    Username
    UNREA1
    Posted 1 year ago

    Create a trigger, name the trigger, lets say "triggername".

    Next create the button and add the following output:

    On Pressed; triggername; enable;

    After this create an env_hudhint, name it (ex. hudhintname), and insert the desired text you want to show to these players inside the trigger.

    Next, go on the trigger and add the following output:

    On Start Touch; hudhintname; Show;

    Whenever someone enters the trigger while its enabled, a message will show in their hud.

    PS: Just noticed this is for TF2, never tried it in this game and I can't think of another way to do it.

    User Title
    I'm in Portugal bitch
  • BlahBerrys's Levels
    • C1: Member
    • A3: Apprentice
      Account Age: 1 year
    Posted 1 year ago

    Thanks guys! Also Ik how to make buttons work in TF2 :D Also I need like model that would be cool for a 'portal' and i was just thinking the portals u can shoot in portal are sick, was wandering if there was a model for it? Or can someone else suggest a good model for a portal?

    Bananite
  • You must be a member