What it does
SendNetworkMessage makes something happen at once: it sends. It takes iNetID (an integer), toClient (an integer) and iMsgID (an integer), and returns nothing. iNetID is the id of a Net object, obtained elsewhere in the Multiplayer family.
Syntax
SendNetworkMessage(iNetID integer, toClient integer, iMsgID integer)Parameters
| Name | Type |
|---|---|
| iNetID | integer |
| toClient | integer |
| iMsgID | integer |
Every form returns
nothing
Example · generated
net = CreateNetworkMessage()SendNetworkMessage(net, 1, 1)DO Sync()LOOPCreateNetworkMessage is there to give the call something to act on; SendNetworkMessage is the line that matters. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.