made bullets and name unreliable RPCs

This commit is contained in:
Paul Black 2023-03-01 20:27:07 -07:00
parent 714fbb885d
commit 4464179fa9

View file

@ -138,7 +138,7 @@ func remote_set_position(authority_position, bulletgenerator_position, bulletgen
$CollisionShape3D/Neck/Camera3D/BulletGenerator.global_position = bulletgenerator_position
$CollisionShape3D/Neck/Camera3D/BulletGenerator.global_rotation = bulletgenerator_rotation
@rpc("any_peer", "reliable")
@rpc("any_peer", "unreliable")
func shoot_bullet():
var b = Bullet.instantiate()
b.set_multiplayer_authority(teddyAuthority)
@ -158,6 +158,6 @@ func teddy_dead_nomore():
get_node(selfTeddy).visible = true
get_node(teddyCollider).disabled = false
@rpc("any_peer")
@rpc("any_peer", "unreliable")
func set_teddy_name(node, name):
get_node(node).set_text(name)