Networking

This commit is contained in:
2023-01-17 22:30:12 +01:00
parent 9893bc45b4
commit ce7b74c832
8 changed files with 116 additions and 48 deletions

View File

@@ -36,8 +36,9 @@ func create_player(id=1):
# Add it to the "Players" node.
# We give the new Node a name for easy retrieval, but that's not necessary.
p.name = str(id)
p.set_multiplayer_authority(id)
#p.set_multiplayer_authority(id)
NetworkingRoot.add_child(p)
p.init()
func destroy_player(id):
# Delete this peer's node.