C4 Engine
C4 Engine API Documentation

MessageMgr::SendMessageAll

Defined in:  C4Messages.h
Sends a message to all players in a multiplayer game.
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

MessageMgr::SendMessage

MessageMgr::SendMessageClients

MessageMgr::SendMessageJournal