made bullets and name unreliable RPCs
This commit is contained in:
parent
714fbb885d
commit
4464179fa9
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue