Files
SpaceBots/actors/Components/HurtBox.gd
2026-01-21 23:51:53 +01:00

11 lines
241 B
GDScript

extends Area3D
class_name HurtBox
signal hitTaken(attack: Attack)
func _ready() -> void:
monitoring = false
func hit(attack: Attack) -> void: ##Emits hitTaken signal to indicate the actor has been hit by an attack
hitTaken.emit(attack)