Fix the aiming and bullet creation

This commit is contained in:
2025-02-01 18:03:00 +01:00
parent 33f1d57a50
commit bd91818682
19 changed files with 334 additions and 8089 deletions

View File

@ -20,6 +20,11 @@ func _on_head_collision_body_part_hit(dam: Variant) -> void:
owner_placeholder.take_damage(dam)
pass # Replace with function body.
func _hit_detected(dam: Variant) -> void:
print("hit detected")
if owner_placeholder:
owner_placeholder.take_damage(dam)
func _get_owner() -> CharacterBody3D:
var owner_placeholder := find_parent("PlayerPlaceholder*")
return owner_placeholder