GNet - Set data to remote object?
BlitzMax Forums/BlitzMax Programming/GNet - Set data to remote object?
| ||
hello! I've got a question: is it possible to set some data (int, string...) to a remote object via gnet? for example i have got 4 clients, each one has an local object. the server receives 4 remote objects. is the following code possible: Local peernumber% = 0 GNetSync(listen) Local peerlist:TList = GNetObjects(listen) For Local peer:TGNetObject = EachIn peerlist For Local position% = 0 To 7 SetGNetInt(peer, position+9, Karten[peernumber, position]) Print GetGNetString(peer, 0) Next peernumber:+1 Next GNetSync(listen) |
| ||
No, you can not do that. And there is actually no reason to reset a players position unless there is a massive difference as it causes very noticable consistency breaks in the game experience. In that case, you could notify the client -> client object of that through sending a GNETMessage |
| ||
ok thank you :) |