Sync player hurt and death sounds

remotes/1705382094874458415/tmp_refs/heads/godot4-port
Jan 2020-09-28 00:31:59 +02:00
parent db788a1246
commit 7cda3bec9e
1 changed files with 2 additions and 2 deletions

View File

@ -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()