Movement cost on a grid

Hello. I’m currently looking at TurnBasedAI script from the sample provided. There’s movement points cost which works out the path a unit can travel over.

Once a path has been chosen and travelled over, is it possible to somehow extract the cost travelled in a similar way? So if my movement points are set to 8, and I travel over four nodes, it’d reduce my movement points by 4?

Hi

If you have just calculated a path, you can find its cost via the path.cost field.