18 lines
382 B
GDScript
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)
|