Defined in:Called to send messages containing the controller's state to a new player.
virtual void SendInitialStateMessages(Player *player) const;
||The player to which initial state messages should be sent.|
SendInitialStateMessagesfunction is called for every controller in a world when a new client machine joins a multiplayer game. This function should send any messages necessary to synchronize the initial state of the controller on the new client by calling the
Player::SendMessagefor the player specified by the
This function is called on the server machine after the
kPlayerInitializedevent has been sent to the
Application::HandlePlayerEventfunction and before the message journal is transmitted to a new client machine.