I’m working on a colony sim game, and I have AI agents who are using GOAP System. I implemented multithreading for their planning but i have a problem. When agents do their planning they are relying on Pathfinding to check if some actions can be executed (e.g. to find closest tree or check if he can reach some position). Now, I would like to make Pathfinding of that agent execute on the same thread on which he is doing his planning. Is there a way to do it without changing source code, and if not, can i get some guidance on what should I check out.
Edit: I’m using StartMultiTargetPath.