In this article, the custom task should be called “BTT_SetChaseSpeed” and not “BTT_ChasePlayer”, it is confusing to see it next to “MoveTo”. The task should be complementing “MoveTo” task, with its current name it is doing the opposite.
**UPDATE
Reviewing documentation further, “BTT_ChasePlayer” task should be called “BTT_SetMovementSpeed” and used by both “ChasePlayer” and “Patrol” sequences for consistency. Right now “Petrol” sequence defines “BTT_FindRandomPatrol” task which also calls the “Update Walk Speed” function which is sole purpose of “BTT_ChasePlayer” task.
The logic/steps should be clear and simple and demonstrate the power of modality.
For Chase:
- Face Player
- Increase Speed
- Move to Player Location
For Patrol:
- Find Random Location
- Decrease Speed
- Move to Random Location