diff --git a/Assets/Scripts/Behaviours/Ped/States/BaseScriptState.cs b/Assets/Scripts/Behaviours/Ped/States/BaseScriptState.cs index 1afd6024..870557c1 100644 --- a/Assets/Scripts/Behaviours/Ped/States/BaseScriptState.cs +++ b/Assets/Scripts/Behaviours/Ped/States/BaseScriptState.cs @@ -192,7 +192,7 @@ namespace SanAndreasUnity.Behaviours.Peds.States float distance = cameraDistance; var castRay = new Ray(castFrom, castDir); RaycastHit hitInfo; - int ignoreLayer = (1 << MapObject.BreakableLayer) | (1 << Vehicles.Vehicle.Layer) | (1 << Ped.LayerMask); + int ignoreLayer = (1 << MapObject.BreakableLayer) | (1 << Vehicles.Vehicle.Layer) | Ped.LayerMask; if (Physics.SphereCast(castRay, 0.25f, out hitInfo, distance, ~ ignoreLayer)) {