blunderbuss working
This commit is contained in:
@@ -22,3 +22,8 @@ func hit(bullet_damage):
|
||||
number_spawn.damage_amt = bullet_damage * damage
|
||||
number_spawn.position = global_position + Vector3(0,2,0)
|
||||
get_tree().get_root().add_child(number_spawn)
|
||||
|
||||
func _on_body_entered(body: Node3D) -> void:
|
||||
if body.is_in_group("pellet"):
|
||||
hit(body.bullet_damage)
|
||||
SignalBus.emit_signal("enemy_hit")
|
||||
|
||||
Reference in New Issue
Block a user