Networking
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user