Blockland Forums > Modification Help

Get client from GUI?

Pages: << < (2/2)

Bauklotz:

serverConnection*. Only localClientConnection if you are hosting.

Red_Guy:

why do you need to know the client thats running the gui?

if you need to store values someplace -- put them in the gui object:

%stuff = ClientSideGui.stuff;
<scripting stuff>
ClientSideGui.stuff = %result;


then later on:
commandToServer('stuff', ClientSideGui.stuff );

Greek2me:

Wow, I'm dumb.

When you do commandToServer, the client is sent automatically. duh

locking

Pages: << < (2/2)

Go to full version