UTIL_SayText

From Valve Developer Community
Jump to: navigation, search
English (en)Translate (Translate)

UTIL_SayText is a wrapper UTIL function for UTIL_SayTextFilter that sends a message to a player.

Declaration

void UTIL_SayText( const char *pText, CBasePlayer *pToPlayer );

Examples

/* Sent message to the player that executed `say_self`. */
CON_COMMAND( say_self, "Sends message to self in chat" )
{
    UTIL_SayText( args, ToBasePlayer( UTIL_GetCommandClientIndex() ) );
}