Elfiawesome23
Member
Hello there, I was recently looking at Gamemaker's 1.4 Lan project demo and I wasn't really able to understand fully the purpose of this chunk of code
This one is located at the async event
When I look at other tutorials using 2 projects , they don't use this
Can anyone explain this concept to me
sorry if this sounds like a newbie question
Thanks
This one is located at the async event
Code:
/// Server network control
var eventid = ds_map_find_value(async_load, "id");
if( server == eventid ){
// If the socket ID is the server one, then we have a new
/// client connecting, OR an old client disconnecting
ConnectDisconnectClient();
}else if( eventid==global.client){
// Do nothing if this is for our "local" client
}else{
// All other sockets are connected client sockets, and we have recieved commands from them.
ServerRecievedData();
}
if( server == eventid )
Can anyone explain this concept to me
sorry if this sounds like a newbie question
Thanks