Files
net-gunner/scripts/multiplayer_test_level.gd

19 lines
354 B
GDScript

extends Node3D
func _enter_tree() -> void:
Game.pawns_selected[1] = Game.pawns.keys()[0]
Multiplayer.client_added.connect(_on_client_added)
#SETUP HOST:
if !Game.net_test:
var handle = "Host - P1"
Multiplayer.handle = handle
#Validate entries
Multiplayer.become_host()
func _on_client_added(handle : String, id : int) -> void:
pass