mirror of
https://gitlab.com/open-fpsz/open-fpsz.git
synced 2026-07-15 00:14:48 +00:00
🐛 Fix multiplayer client respawn logic
This commit is contained in:
parent
0ffcc397ec
commit
6d9ec29840
5 changed files with 121 additions and 93 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue