NetworkClientDisconnected

Family: Multiplayer · One form

What it does

NetworkClientDisconnected reads from a Multiplayer object without changing it. It takes iNetID (an integer) and client (an integer), and answers an integer. iNetID is the id of a Net object, obtained elsewhere in the Multiplayer family.

Syntax

NetworkClientDisconnected(iNetID integer, client integer) → integer

Parameters

NameType
iNetIDinteger
clientinteger

Every form returns

integer

Example · generated

net = CreateNetworkMessage()DO  Print(NetworkClientDisconnected(net, 1))  Sync()LOOP

CreateNetworkMessage is there to give the call something to act on; NetworkClientDisconnected 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.

91 commands in Multiplayer