initial commit
This commit is contained in:
17
scripts/EnemyTarget.gd
Normal file
17
scripts/EnemyTarget.gd
Normal file
@@ -0,0 +1,17 @@
|
||||
extends Area3D
|
||||
|
||||
@export var damage :=1
|
||||
|
||||
signal body_part_hit(dam)
|
||||
|
||||
# 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():
|
||||
emit_signal("body_part_hit", damage)
|
||||
Reference in New Issue
Block a user