added bullet damage into hit system

This commit is contained in:
Derek
2024-07-16 08:18:36 -05:00
parent 0832aa7808
commit 2b5e63a1ec
9 changed files with 536 additions and 33 deletions

View File

@@ -40,8 +40,8 @@ func _process(delta):
move_and_slide()
func _on_area_3d_body_part_hit(dam):
health -= dam
func _on_area_3d_body_part_hit(dam,bullet_damage):
health -= dam * bullet_damage
print("health: " + str(health))
if health <= 0: