added bullet damage into hit system
This commit is contained in:
@@ -2,7 +2,7 @@ extends Area3D
|
||||
|
||||
@export var damage :=1
|
||||
|
||||
signal body_part_hit(dam)
|
||||
signal body_part_hit(dam,bullet_damage)
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
@@ -13,5 +13,5 @@ func _ready():
|
||||
func _process(delta):
|
||||
pass
|
||||
|
||||
func hit():
|
||||
emit_signal("body_part_hit", damage)
|
||||
func hit(bullet_damage):
|
||||
emit_signal("body_part_hit", damage, bullet_damage)
|
||||
|
||||
Reference in New Issue
Block a user