Forum Thread
  Posts  
Text in Hammer Editor? (Forums : Level Design : Text in Hammer Editor?) Locked
Thread Options
Sep 9 2008 Anchor

How do I display an onscreen message in a Half-Life 2 mod using Hammer Editor? Is it a trigger? An entity?

Sep 9 2008 Anchor

Easy enough to do. You really have two options.

"game text"
"env message"

Game text will simply display what ever you want on the screen and specified X and Y co-ordinates with a variety of options for colours fades etc.
Env message is a little more complex. This will pull a pre defined string from the "titles.txt" file located in the scripts folder of the version you are working on ( eg. hl2/scripts/titles.txt ) all you need to do is follow the formatting in the file to create a new "message" and use the name of this in the "message field of the env message entity.
Personally for a simple map I would stick with the "game text" but if you are planning a large mod the env message can be better for localisation as you wont have to compile your map again for every language !

Once you have made your choice its easy enough to trigger the entity with a "trigger once" or even tie it to the opening of a door etc.

Hope this isnt too confusing. If you want to read up the details of these entitles ( and well everything else for that matter ) are located at the
Valve developer community
Game text
Env message

hope this helps

Edited by: _Richardo_

Sep 9 2008 Anchor

Thanks a bunch! This definitely helps me.

Sep 9 2008 Anchor

Your welcome ^^

Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.