Cleanup is going to take awhile, so the site is back up but editing has been disabled.

Env message

From HalfLife 2 Knowledge Base

Jump to: navigation, search

Contents

env_message

Source(core) Point Entity


description

An entity that draws a text message on player's HUDs.


properties

  • Name targetname(target_source)
    The name that other entities refer to this entity by.
  • Message Text message(string)
  • Sound Effect messagesound(sound)
    When the message is shown, this sound effect will be played, originating from this entity.
  • Volume 0-10 messagevolume(string) - default: 10
    Volume of the sound effect.
  • Sound Radius messageattenuation(Choices)
    • 0 - Small Radius
    • 1 - Medium Radius
    • 2 - Large Radius
    • 3 - Play Everywhere


spawn flags

  • 1: Play Once - default: OFF
  • 2: All Clients - default: OFF


inputs

  • Kill(void)
    Removes this entity from the world.
  • KillHierarchy(void)
    Removes this entity and all its children from the world.
  • AddOutput(string)
    Adds an entity I/O connection to this entity. Format
  • FireUser1(void)
    Causes this entity's OnUser1 output to be fired.
  • FireUser2(void)
    Causes this entity's OnUser2 output to be fired.
  • FireUser3(void)
    Causes this entity's OnUser3 output to be fired.
  • FireUser4(void)
    Causes this entity's OnUser4 output to be fired.
  • ShowMessage(void)
    Shows the message and plays the sound.

outputs

  • OnUser1(void)
    Fired in response to FireUser1 input.
  • OnUser2(void)
    Fired in response to FireUser2 input.
  • OnUser3(void)
    Fired in response to FireUser3 input.
  • OnUser4(void)
    Fired in response to FireUser4 input.
  • OnShowMessage(void)
    Fired when the message is activated.

related tutorials

Submit your tutorial for env_message

Personal tools