Better bullet sync

This commit is contained in:
2025-02-01 20:10:52 +01:00
parent 56d346da22
commit 60fc238abd
6 changed files with 51 additions and 53 deletions

View File

@ -9,6 +9,7 @@ extends Node3D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
set_multiplayer_authority(1)
pass # Replace with function body.
@ -24,7 +25,6 @@ func _process(delta):
if ray.is_colliding():
var collider = ray.get_collider()
if collider != null and collider.is_in_group("target"):
print(";ala")
ray.get_collider().hit(damage)
rigid_body_3d.visible = false
particles.emitting = true