[박치영] 행동트리 로직 변경(몬스터 다수일 시 버그해결)
parent
c88a633391
commit
d1c9fffdb1
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -52,7 +52,7 @@ void US_UpdateBehavior::UpdateBehavior()
|
|||
SetBehavior(EAIBehavior::Patrol);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
CanSeeEnemy = true;
|
||||
float dist = targetActor->GetDistanceTo(ControlledMasterAI);
|
||||
if(dist <= TotalAttackingDistance)
|
||||
|
|
|
@ -31,9 +31,9 @@ EBTNodeResult::Type UT_FindNextPatrolPoint::ExecuteTask(UBehaviorTreeComponent&
|
|||
|
||||
if(SetPathLocation())
|
||||
{
|
||||
if(bShouldReverse)
|
||||
DecrementPathIndex();
|
||||
else
|
||||
// if(bShouldReverse)
|
||||
// DecrementPathIndex();
|
||||
// else
|
||||
IncrementPathIndex();
|
||||
}
|
||||
else
|
||||
|
@ -75,7 +75,8 @@ void UT_FindNextPatrolPoint::IncrementPathIndex()
|
|||
if(bShouldLoop)
|
||||
{
|
||||
bShouldReverse = true;
|
||||
DecrementPathIndex();
|
||||
BlackboardComponent->SetValueAsInt(BlackboardKey_PatrolIndex.SelectedKeyName, 0);
|
||||
//DecrementPathIndex();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue