Difference between revisions of "UTIL SayText2Filter"

From Valve Developer Community
Jump to: navigation, search
(Created page.)
 
m (Cleanup)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
  
 
==Usage==
 
==Usage==
void UTIL_SayText2Filter( IRecipientFilter& filter, CBasePlayer *pEntity, bool bChat, const char *msg_name, const char *param1, const char *param2, const char *param3, const char *param4 )
+
<source lang=cpp>
 +
void UTIL_SayText2Filter( IRecipientFilter& filter, CBasePlayer *pEntity, bool bChat, const char *msg_name, const char *param1, const char *param2, const char *param3, const char *param4 )
 +
</source>
  
 
* <code>msg_name</code> - Name of the format string.
 
* <code>msg_name</code> - Name of the format string.
Line 12: Line 14:
 
==Examples==
 
==Examples==
 
{{todo|Add examples.}}
 
{{todo|Add examples.}}
 +
 +
[[Category:UTIL]]

Latest revision as of 13:26, 29 July 2021

A UTIL function that sends a message to players that pass the filter, through a format string with up to four parameters usable.

Usage

void UTIL_SayText2Filter( IRecipientFilter& filter, CBasePlayer *pEntity, bool bChat, const char *msg_name, const char *param1, const char *param2, const char *param3, const char *param4 )
  • msg_name - Name of the format string.
  • param1 - Format string parameter.
  • param2 - Format string parameter.
  • param3 - Format string parameter.
  • param4 - Format string parameter.

Examples

To do: Add examples.