Files
SpaceBots/actors/Components/HurtBox.gd

11 lines
241 B
GDScript3
Raw Normal View History

2026-01-21 23:40:20 +01:00
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)