Better bullet sync
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user