add StartIdling()

This commit is contained in:
in0finite 2021-09-12 21:14:48 +02:00
parent c88314e4d5
commit 867ac634af

View file

@ -228,7 +228,7 @@ namespace SanAndreasUnity.Behaviours
{
if (null == this.TargetPed)
{
this.Action = PedAIAction.Idle;
this.StartIdling();
return;
}
@ -260,7 +260,7 @@ namespace SanAndreasUnity.Behaviours
if (null == this.TargetPed)
{
this.Action = PedAIAction.Idle;
this.StartIdling();
return;
}
@ -361,6 +361,13 @@ namespace SanAndreasUnity.Behaviours
}
}
public void StartIdling()
{
this.Action = PedAIAction.Idle;
this.HasCurrentNode = false;
this.HasTargetNode = false;
}
public void StartWalkingAround(PathNode pathNode)
{
this.CurrentNode = pathNode;