Setup


BP_BaseAI blueprint already has PatrolComponent, so firstly we need to create path using BP_PatrolPath.

Next, connect created patrol path with reference in PatrolComponent.

  • PatrolPath - reference to BP_PatrolPath actor
  • PointInde - index of point in spline component
  • ReverseDirection - whether it should update patrol index by incrementing it or decrementing


To move AI towards patrol index location, use task T_MoveToPatrolPoint.