# SendNetworkMessage

## Description

Sends a created network message to a given client on a given network. Use a client ID of 0 to send to all connected clients (except the sender), otherwise if the client ID does not exist an error will be generated. This function will delete the message ID given.

## Definition

SendNetworkMessage( iNetID, toClient, iMsgID )

void agk::SendNetworkMessage( UINT iNetID, UINT toClient, UINT iMsgID )

## Parameters

- iNetID - The ID of the network to send the message over.
- toClient - The ID of the client to send the message to, 0 to send to all.
- iMsgID - The ID of the message to send.