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) → integerParameters
| Name | Type |
|---|---|
| socketID | integer |
| value | float |
Every form returns
integer
Example · generated
socket = CreateSocketListener("value", 1)DO Print(SendSocketFloat(socket, 1.0)) Sync()LOOPCreateSocketListener 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.