Dota 2 Workshop Tools/Scripting/API/Global.UTIL MessageTextAll WithContext
< Dota 2 Workshop Tools | Scripting | API
		
		
		
		Jump to navigation
		Jump to search
		
This article has no  links to other VDC articles. Please help improve this article by adding links
 links to other VDC articles. Please help improve this article by adding links  that are relevant to the context within the existing text.
 that are relevant to the context within the existing text. 
January 2024
 links to other VDC articles. Please help improve this article by adding links
 links to other VDC articles. Please help improve this article by adding links  that are relevant to the context within the existing text.
 that are relevant to the context within the existing text. January 2024
 Note: This page is automatically generated.  Any changes may be overwritten
Note: This page is automatically generated.  Any changes may be overwrittenFunction Description
void UTIL_MessageTextAll_WithContext(string message, int r, int g, int b, int a, table context)
Sends a message to everyone in the message box with a context table
- Example
UTIL_MessageTextAll_WithContext( "#ScoreboardRow", 255, 255, 255, 255, { team_name = "Team", value = 50 } )
--Where #ScoreboardRow is defined in the langauge files as
-- "ScoreboardRow"         "%value% %team_name%"
-- %value% would be replaced by the 'value' entry in the table, %team_name% would be replaced by team_name entry
Parameters
| Type | Name | Description | 
|---|---|---|
| string | message | Message to write | 
| int | r | red color | 
| int | g | green color | 
| int | b | blue color | 
| int | a | transparency | 
| table | context | Table with context values |