What it does
SocketFloat reads from a Multiplayer object without changing it. It takes socketID (an integer), and answers a float. socketID is the id of a Socket object, obtained elsewhere in the Multiplayer family.
Syntax
SocketFloat(socketID integer) → floatParameters
| Name | Type |
|---|---|
| socketID | integer |
Every form returns
float
Example · generated
socket = CreateSocketListener("value", 1)DO Print(SocketFloat(socket)) Sync()LOOPCreateSocketListener is there to give the call something to act on; SocketFloat 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.