I have an array in a Singleton:
var players = {}
And I store in it the id of players and their properties:
Global.id = get_tree().get_network_unique_id()
Global.players[Global.id] = {}
Global.players[Global.id]["name"] = Global.player["name"]
Global.players[Global.id]["sex"] = Global.player["sex"]
Global.players[Global.id]["race"] = Global.player["race"]
Global.players[Global.id]["skintone"] = Global.player["skintone"]
Global.players[Global.id]["eyes"] = Global.player["eyes"]
But when I try to pass the changed value of an array to the rest of the peers, nothing happens:
rset("Global.players[" + str(Global.id) + "]", Global.players[Global.id])
What am I doing wrong?
Sorry for my bad English :)