From 0e4bd013e159d1919b16f1dd5d11b8d3c8412a37 Mon Sep 17 00:00:00 2001 From: in0finite Date: Tue, 4 Jan 2022 21:27:30 +0100 Subject: [PATCH] fix --- Assets/Scripts/Behaviours/Ped/States/PanicState.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Behaviours/Ped/States/PanicState.cs b/Assets/Scripts/Behaviours/Ped/States/PanicState.cs index cb5ed845..5498afce 100644 --- a/Assets/Scripts/Behaviours/Ped/States/PanicState.cs +++ b/Assets/Scripts/Behaviours/Ped/States/PanicState.cs @@ -26,7 +26,8 @@ namespace SanAndreasUnity.Behaviours.Peds.States public override void UpdateState() { - this.TryEmitSound(); + if (m_isServer) + this.TryEmitSound(); base.UpdateState(); }