12-Jul-2023
An entity to display messages from the titles.txt file on the HUD. You probably are better off with the much more customizable game_text entity.
Keyvalues |
OnDestroy Function ondestroyfn : Name of the function to use from already parsed .as script files when entity is destroyed (killed) in any way. If the function belongs to namespace, you must use prefix with the namespace name (e.g. mynamespace::MyFunction) for the keyvalue.
Name targetname : Set name of env_message so other entities can trigger it to display message.
Target target : Name of entity to trigger (fire). Which function relates to it depends on the respective entity. Most will just trigger their target, while others will perform actions on their target or use it as a reference for other activities. Often, multiple entities by the same name may be targeted. Most entities need no target, but having one is essential for most logic entities and basic trigger-systems.
Message Name message : Name of the message from titles.txt to display.
Sound Effect messagesound : An optional sound effect to play. Path starts in the 'sound'-folder.
Volume 0-10 messagevolume : The volume, from 0 to 10, to play the sound at.
Sound Radius messageattenuation : The radius in which the sound can be heard.
1 : Play Once : The message can show up only once.
2 : All Clients : Everyone will see the message, instead of only the !activator.