MessageMgr::SendMessageAll
Defined in:
Sends a message to all players in a multiplayer game.
C4Messages.h
Prototype
void SendMessageAll(const Message& message, bool self = true);
Parameters
message |
The message to be sent. |
self |
A boolean value that indicates whether the message should also be received on the local machine. |
Description
The SendMessageAll
function sends the message given by the message
parameter to every player. If the self
parameter is true
, then the message is also received on the local machine. In this case, the message is received and processed on the local machine before SendMessageAll
returns.When a client machine calls
SendMessageAll
, the message is sent only to the server since that is the only machine with which a connection exists.
See Also