Sync player hurt and death sounds
parent
db788a1246
commit
7cda3bec9e
|
@ -164,9 +164,9 @@ master func on_hit(damage, location):
|
||||||
|
|
||||||
if health <= 0 and not is_dead:
|
if health <= 0 and not is_dead:
|
||||||
rpc("kill")
|
rpc("kill")
|
||||||
$Sounds/Death.play()
|
$Sounds/Death.rpc("play")
|
||||||
else:
|
else:
|
||||||
$Sounds/Pain.play()
|
$Sounds/Pain.rpc("play")
|
||||||
|
|
||||||
sync func blood_splatter(location):
|
sync func blood_splatter(location):
|
||||||
var effect = bodyHitEffect.instance()
|
var effect = bodyHitEffect.instance()
|
||||||
|
|
Reference in New Issue