Fix the aiming and bullet creation
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user