Difference between revisions of "UTIL SayText"

From Valve Developer Community
Jump to: navigation, search
m (This function is a wrapper.)
m (Category.)
Line 9: Line 9:
 
     UTIL_SayText(args, ToBasePlayer(UTIL_GetCommandClientIndex()));
 
     UTIL_SayText(args, ToBasePlayer(UTIL_GetCommandClientIndex()));
 
  }
 
  }
 +
 +
[[Category:UTIL]]

Revision as of 22:54, 22 July 2021

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()));
}