mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-16 21:08:28 +00:00
...
This commit is contained in:
parent
c71b7f41bc
commit
4167d76bfb
1 changed files with 8 additions and 5 deletions
|
@ -163,7 +163,14 @@ namespace SanAndreasUnity.Behaviours
|
|||
{
|
||||
// follow target ped
|
||||
|
||||
if (this.TargetPed != null) {
|
||||
if (null == this.TargetPed)
|
||||
{
|
||||
this.Action = PedAIAction.Idle;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
|
||||
Vector3 targetPos = this.TargetPed.transform.position;
|
||||
float currentStoppingDistance = 3f;
|
||||
|
@ -219,10 +226,6 @@ namespace SanAndreasUnity.Behaviours
|
|||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Action = PedAIAction.Idle;
|
||||
}
|
||||
}
|
||||
|
||||
public void StartWalkingAround(PathNode pathNode)
|
||||
|
|
Loading…
Add table
Reference in a new issue