diff --git a/src/ingame/player.gd b/src/ingame/player.gd index a60c500..5df6ec8 100644 --- a/src/ingame/player.gd +++ b/src/ingame/player.gd @@ -55,16 +55,16 @@ func _process(_delta: float) -> void: func _physics_process(delta: float) -> void: ## Process interactivity selection. - var collider: Object = null - if _line_of_sight.is_colliding(): - collider = _line_of_sight.get_collider(0) - if collider != _interaction_selection: - if _interaction_selection != null: - _interaction_selection.get_parent().mark_non_interactive() - if collider != null: - collider.get_parent().mark_interactive() - _interaction_selection = collider - + if id == multiplayer.get_unique_id(): + var collider: Object = null + if _line_of_sight.is_colliding(): + collider = _line_of_sight.get_collider(0) + if collider != _interaction_selection: + if _interaction_selection != null: + _interaction_selection.get_parent().mark_non_interactive() + if collider != null: + collider.get_parent().mark_interactive() + _interaction_selection = collider # Add the gravity. if not is_on_floor():