cutting right to the point. How do I use a service to run a behavior every 30 seconds? This code is running infinite at the moment; rest of the behavior tree isn’t running. I just want this AI to perform this simple behavior once every 30 seconds. Any interval I place in the service makes it run infinite.
I reused the same decorator for this branch as the others because its a boolean check with different blackboard keys. Print Task is a filler task for the real one not implemented yet.
You can try implementing a custom service that would be setting up and using a timer. Or you can have this logic in AIController class’ BP altogether or alternatively kept in sync with BT using blackboard. Not every single thing has to be done in BT