UTIL SayText

From Valve Developer Community
Revision as of 13:21, 29 July 2021 by GamerDude27 (talk | contribs) (Cleanup)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

Usage

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

Examples

    CON_COMMAND( say_self, "Sends message to self in chat" )
    {
        UTIL_SayText( args, ToBasePlayer( UTIL_GetCommandClientIndex() ) );
    }