Player view and world models
This commit is contained in:
parent
79ff5b4f62
commit
b601b9430e
4 changed files with 24 additions and 1 deletions
6
scripts/multiplayer/own_visibility_toggle.gd
Normal file
6
scripts/multiplayer/own_visibility_toggle.gd
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
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
|
||||
1
scripts/multiplayer/own_visibility_toggle.gd.uid
Normal file
1
scripts/multiplayer/own_visibility_toggle.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://dd5mp72dq43v6
|
||||
Loading…
Add table
Add a link
Reference in a new issue