mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 20:13:02 +00:00
exit vehicle when in Chase state
This commit is contained in:
parent
67e5b9e21b
commit
de9d01fc95
1 changed files with 6 additions and 0 deletions
|
@ -65,6 +65,12 @@ namespace SanAndreasUnity.Behaviours.Peds.AI
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_ped.IsInVehicle)
|
||||||
|
{
|
||||||
|
_ped.OnSubmitPressed();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.UpdateAttackOnPed(this.TargetPed, ref _wasInRange);
|
this.UpdateAttackOnPed(this.TargetPed, ref _wasInRange);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue