11 lines
241 B
GDScript3
11 lines
241 B
GDScript3
|
|
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)
|