WIP: Both players are spawned, but controls do not work

This commit is contained in:
Nikolai Rodionov
2025-01-24 13:23:26 +01:00
parent c9625327df
commit aadf8722a5
3 changed files with 75 additions and 53 deletions

View File

@@ -32,6 +32,7 @@ var is_crouch: bool = false
@onready var character: Node3D = $"."
func _ready() -> void:
set_process(get_multiplayer_authority() == multiplayer.get_unique_id())
capture_mouse()
func _unhandled_input(event: InputEvent) -> void:
if event is InputEventMouseMotion: