Hello comrades! Help me understand, please.
I have a map on which NPC workers move, they carry loads from point A to point B using the pathfinding behavior.
I build roads for workers, which give an increase in the speed of movement, and I want them to try to drive along them when choosing a path to get to their destination faster.
I know that there is an action "add path cost", but no matter what values I enter, the workers on the contrary avoid traffic on the road. I tried both positive and negative numbers in the range of 20 to -20, but it didn't help.
As a result, I can create areas that workers will try to bypass, but how do I create areas that they want to walk through?
The map I have consists of a Tilemap object, roads are created from Sprite objects. What should I do?
Thanks for your attention!