Chelimbalo/scripts/multiplayer/own_visibility_toggle.gd
2025-11-26 20:09:44 +05:00

6 lines
190 B
GDScript

extends Node
@export var visible_for_others: bool = false
func _ready() -> void:
get_parent().visible = (get_multiplayer_authority() != multiplayer.get_unique_id()) == visible_for_others