SendSocketFloat

Family: Multiplayer · One form

What it does

SendSocketFloat makes something happen at once: it sends. It takes socketID (an integer) and value (a float), and answers an integer. socketID is the id of a Socket object, obtained elsewhere in the Multiplayer family.

Syntax

SendSocketFloat(socketID integer, value float) → integer

Parameters

NameType
socketIDinteger
valuefloat

Every form returns

integer

Example · generated

socket = CreateSocketListener("value", 1)DO  Print(SendSocketFloat(socket, 1.0))  Sync()LOOP

CreateSocketListener is there to give the call something to act on; SendSocketFloat 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