TL;DR: What are the guidelines to create a service vs a task for a specific action?
I’m looking into Behavior Tree and I’m looking into some guidelines on when to use a service vs task.
For example, I was thinking on using a task to find the AI enemies (like the player), using a perception component.
I then looked at the ActionRPG example, and noticed they have a service to doing something like that.
I then thought perhaps it’s about an actual action (like moving) vs updating the blackboard. But I found a node in the same ActionRPG example
with a task for “Finding new location round target”, which is the same thing.
So what is it? What are some points/guidelines that can help one decide if he should use a service or a task a behavior tree?