WIP: Spawn bullets on the server and sync them
This commit is contained in:
parent
24914cb6fa
commit
5678ddb4c1
@ -17,7 +17,8 @@ func _process(delta: float) -> void:
|
||||
func _on_head_collision_body_part_hit(dam: Variant) -> void:
|
||||
print("head is hit" + str(dam))
|
||||
print(owner_placeholder)
|
||||
owner_placeholder.take_damage(dam)
|
||||
if owner_placeholder.has_method("take_damage"):
|
||||
owner_placeholder.take_damage(dam)
|
||||
pass # Replace with function body.
|
||||
|
||||
func _get_owner() -> CharacterBody3D:
|
||||
|
@ -255,4 +255,5 @@ func _hit_scan_damage(Collider):
|
||||
print("damaged")
|
||||
|
||||
func take_damage(dam: int):
|
||||
print("damage")
|
||||
health =- dam
|
||||
|
Loading…
x
Reference in New Issue
Block a user