mtd/Scripts/hitbox.gd

8 lines
142 B
GDScript3
Raw Normal View History

2024-02-22 06:22:22 +11:00
class_name Hitbox extends CollisionShape3D
2024-02-22 06:22:22 +11:00
signal took_damage(amount: float)
2024-02-22 06:22:22 +11:00
func damage(amount: float) -> void:
took_damage.emit(amount)