Armed guys!
This commit is contained in:
@@ -25,8 +25,8 @@ func _ready():
|
||||
respawned.connect(_on_enemy_respawned)
|
||||
|
||||
func _physics_process(delta):
|
||||
# Only server handles enemy AI
|
||||
if not multiplayer.is_server():
|
||||
# Only server handles enemy AI (check peer is assigned first)
|
||||
if multiplayer.multiplayer_peer == null or not multiplayer.is_server():
|
||||
return
|
||||
|
||||
if is_dead:
|
||||
|
||||
Reference in New Issue
Block a user