🐛 Fix multiplayer client respawn logic

This commit is contained in:
Squinternator 2024-04-10 15:13:18 +00:00
parent 0ffcc397ec
commit 6d9ec29840
5 changed files with 121 additions and 93 deletions

View file

@ -2,13 +2,13 @@ extends Area3D
class_name HealthComponent
@export var max_health : int = 100
@export var health : int:
@export var health : int = 100:
set(value):
health = value
health_changed.emit(value)
signal health_zeroed
signal health_changed
signal health_changed(value : int)
func _ready():
health = max_health