How to check if the unit has reached the target so it can be deselected

Inside my foreach statement im running through my list of units and making them be able to move with ReadyToTravel eqauls true and then i want to wait till the unit gets to the destination so then I can make ReadyToTravel eqaul false otherwise it stops before its arrived, just wondering what the best way to acomplish this is since ive been told i have to learn async but havent found any good resources to learn it of.

Hi

I’d recommend polling ai.reachedDestination.

I cannot help you with where to find resources on coroutines and async, though.

Thanks Ill check out polling.