Client/scripts/match/ui/player_hitpoints.gd

11 lines
258 B
GDScript3
Raw Normal View History

2025-03-13 13:21:53 +01:00
extends RichTextLabel
func _ready() -> void:
MatchChannel.connect("on_hitpoints_update", on_hitpoints_update)
func on_hitpoints_update(msg: PlayerHitpointsMessage) -> void:
print(msg.playerHitpoints, "test")
self.text = str(msg.playerHitpoints, "HP")