NetMsgType
Type of the received message.
NetMsgType()
Parameters
- None.
Description
Gives back the type of the message taken by RecvNetMsg: 1 to 99 for messages sent with SendNetMsg, 100 when a player has joined, 101 when one has left, and 200 when the connection to the host has been lost. When the host leaves, every other computer gets a 101 for each player that was on another computer, then a 200: the game is over, as the host doesn't hand it on to anyone else. A computer only receives messages once it has made a player with CreateNetPlayer, even one that only watches.
