Training annotation: Difference between revisions
Jump to navigation
Jump to search

Note:VScript offers a more powerful version of this entity, that allows per-player filtering and showing special effects. Use the SendGlobalGameEvent function with the show_annotation event.
Note:The fade-in effect when an annotation is shown does not work unless lifetime is set to -1
(Use {{entity}} template instead) |
DudeTheNinja (talk | contribs) m (Fixed linking for SendGlobalGameEvent hyperlink to not be linking to a CSD article) |
||
Line 5: | Line 5: | ||
An in-world location-specific information bubble that displays for all players. | An in-world location-specific information bubble that displays for all players. | ||
{{note|[[VScript]] offers a more powerful version of this entity, that allows per-player filtering and showing special effects. Use the [[Team_Fortress_2/Script_Functions|SendGlobalGameEvent]] function with the [https://wiki.alliedmods.net/Team_Fortress_2_Events#show_annotation show_annotation] event.}} | {{note|[[VScript]] offers a more powerful version of this entity, that allows per-player filtering and showing special effects. Use the [[Team_Fortress_2/Scripting/Script_Functions#Globals|SendGlobalGameEvent]] function with the [https://wiki.alliedmods.net/Team_Fortress_2_Events#show_annotation show_annotation] event.}} | ||
==Keyvalues== | ==Keyvalues== |
Revision as of 15:02, 20 November 2023


Entity description
An in-world location-specific information bubble that displays for all players.

Keyvalues
- Displayed text (display_text) <string>
- The text to be displayed in the annotation popup.
- Lifetime (lifetime) <float>
- How long you want the annotation popup to stick around. If set to 0, it will default to the value in code (1 sec). If it set to -1, it will last forever.

- Vertical offset (offset) <float>
- The vertical offset.
Inputs
- Show
- Shows the annotation bubble.
Bug:Showing an annotation will print an error to console mentioning a missing sound file, the file path cannot be modified. [todo tested in ?]
- Hide
- Hides the annotation bubble.
Warning:Hide does not work in multiplayer! Use the lifetime keyvalue if you want to use this entity outside of training mode.