ArcBasicDocs

SendNetMsg

Sends a message.

SendNetMsg ( type,data$,from[,to][,reliable] )

Parameters

type
a number from 1 to 99, of your choosing, saying what kind of message it is, such as 1 for a position and 2 for a shot.
data$
what the message says.
from
the player sending it, from CreateNetPlayer.
to (optional)
the player to send it to, or 0 for everyone.
reliable (optional)
accepted for older programs; messages always arrive, in order. Defaults to 1.

Description

Sends a message to one player or to everyone in the network game.

See also