SEND NET MESSAGE FLOAT This command will send a message containing a float value to the specified player.
Syntax
    SEND NET MESSAGE FLOAT Player Number, Float Value
Parameters
    Player Number
Integer The Player Number must be an integer value and an existing player in the net game. A Player Number of zero will send the message to all players except you
    Float Value
Float The float value to send
Returns
This command does not return a value.
Description
The Player Number must be an integer value and an existing player in the net game. A Player Number of zero will send the message to all players except you.
Example Code
    rem Network game can communicate numbers and strings

    while inkey$()<>"x"

    cls

    print "HANDLE NET MESSAGES (Press X To Continue)"

    rem Show Latest Return Values

    print "FLOAT: ";ReturnFloat#

    rem Send Part

    if mouseclick()=1

    print "SENDING..."

    send net message float 0,mousey()*1.0

    endif

    rem Receive Part (from all other players)

    get net message

    if net message exists()=1 then print "RECEIVING..."

    while net message exists()=1

    if net message type()=2 then ReturnFloat#=net message float()

    get net message

    endwhile

    endwhile
See also
MULTIPLAYER Commands Menu Index