mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-03-05 07:37:17 +00:00
only on server or local player
This commit is contained in:
parent
6da98dd68a
commit
884ef2a223
1 changed files with 2 additions and 1 deletions
|
@ -138,7 +138,8 @@ namespace SanAndreasUnity.Behaviours.Peds.States
|
|||
// we need to override default behaviour, because otherwise ped will be turning around while aiming
|
||||
// with AWA weapons
|
||||
|
||||
m_ped.Heading = m_ped.AimDirection.WithXAndZ ().normalized;
|
||||
if (m_isServer || m_ped.IsControlledByLocalPlayer)
|
||||
m_ped.Heading = m_ped.AimDirection.WithXAndZ ().normalized;
|
||||
}
|
||||
|
||||
public override Vector3 GetCameraFocusPos ()
|
||||
|
|
Loading…
Add table
Reference in a new issue