From 7cda3bec9e92808b1ef5826a4934f359469db3f5 Mon Sep 17 00:00:00 2001 From: Jan Date: Mon, 28 Sep 2020 00:31:59 +0200 Subject: [PATCH] Sync player hurt and death sounds --- Player.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Player.gd b/Player.gd index c10c706..cea85c1 100644 --- a/Player.gd +++ b/Player.gd @@ -164,9 +164,9 @@ master func on_hit(damage, location): if health <= 0 and not is_dead: rpc("kill") - $Sounds/Death.play() + $Sounds/Death.rpc("play") else: - $Sounds/Pain.play() + $Sounds/Pain.rpc("play") sync func blood_splatter(location): var effect = bodyHitEffect.instance()