WIP: Spawn bullets on the server and sync them

This commit is contained in:
2025-01-26 21:57:09 +01:00
parent 5678ddb4c1
commit c7c577233b
5 changed files with 9 additions and 8 deletions

View File

@ -15,10 +15,10 @@ func _process(delta: float) -> void:
func _on_head_collision_body_part_hit(dam: Variant) -> void:
print("head is hit" + str(dam))
print(owner_placeholder)
if owner_placeholder.has_method("take_damage"):
owner_placeholder.take_damage(dam)
#print("head is hit" + str(dam))
#print(owner_placeholder)
#if owner_placeholder.has_method("take_damage"):
owner_placeholder.take_damage(dam)
pass # Replace with function body.
func _get_owner() -> CharacterBody3D:

View File

@ -16,7 +16,7 @@ properties/1/spawn = true
properties/1/replication_mode = 1
properties/2/path = NodePath(".:health")
properties/2/spawn = true
properties/2/replication_mode = 1
properties/2/replication_mode = 2
[sub_resource type="Animation" id="Animation_falg4"]
length = 0.001