Skip to main content

env_message

env_message icon
Point entity

An env_message shows a message from titles.txt on the HUD each time you trigger it, and it can play a sound with it.

Attributes​

KeyDescriptionDefault
Nametargetname

Triggering the entity shows the message. See Common keys.

Targettarget

Names the entities to trigger after it shows the message. The env_message passes itself on as the activator, not the player who triggered it.

Message Namemessage

Sets the name of a message in titles.txt to show, which also sets the color, the position and the effects of the text (see Titles.txt on TWHL). Text that matches no name there is shown as it is, in the lower middle of the screen, for 5 seconds.

Sound Effectmessagesound

Sets a sound that plays at the entity each time it shows the message.

If you leave this key empty, it plays no sound.

Volumemessagevolume

Sets how loud Sound Effect is, from 0 for silent up to 10 for full volume.

If you leave this key empty or set 0, the sound plays at full volume.

Default 10
Sound Radiusmessageattenuation

Sets how far the sound carries from the entity.

  • Small Radius (0) - Players hear it up to about 500 units away
  • Medium Radius (1) - Players hear it up to about 800 units away
  • Large Radius (2) - Players hear it up to about 1250 units away
  • Play Everywhere (3) - Every player hears it at full volume, anywhere on the map
Default Small Radius (0)

Flags​

1Play Once

The entity is removed after it shows its message once

2All Clients

Every player sees the message. Without this flag, only the player who triggered it sees it, or the first player when no player triggered it

See also​