Files
fps_project_1/scripts/EnemyTarget.gd
2024-07-16 08:18:36 -05:00

18 lines
382 B
GDScript

extends Area3D
@export var damage :=1
signal body_part_hit(dam,bullet_damage)
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func hit(bullet_damage):
emit_signal("body_part_hit", damage, bullet_damage)