network_event object
int type
Determines the type of event that is being received. This can be any of the following values:

- EVENT_NONE (0) - No event is being received at that time.
- EVENT_CONNECT (1) - A peer has just connected.
- EVENT_RECEIVE (2) - A packet has been received from a peer.
- EVENT_DISCONNECT (3) - A remote peer has just disconnected.

The default value for this property is event_none. This property cannot be modified from the script.
uint peer_id
The unique ID of the peer to whom the event relates. This is valid for all events except EVENT_NONE, and is set to 0 otherwise. This property cannot be modified from the script.
int channel
The channel on which the event was received. This is only valid for events of type EVENT_RECEIVE, and is set to 0 otherwise.
string message
The message that was received. This is only valid for events of type EVENT_RECEIVE, and is an empty string otherwise. This property cannot be modified from the script.