Page 1 of 1

showRoute

Posted: Sat May 16, 2015 3:30 pm
by enric
When you choose a tile to move the selected unit, the route the unit will follow is showed.
Is there a way to get the array of tiles, from origin to destination?

Re: showRoute

Posted: Tue May 19, 2015 8:47 pm
by pipfromslitherine
Take a look at the GetCheckRouteLength and related functions.

Cheers

Pip

Re: showRoute

Posted: Wed May 20, 2015 7:08 am
by enric
Thank you.

I see that the problem was not on how to obtain the path but how to know when a unit as really finished its move.

I'd like to trigger an action when a unit has finished its move, for example moving another units that also may trigger another action when finished.

I tried AddVizWaitOnMove(me) but don't works as expected.

Can you give me some light?

Re: showRoute

Posted: Wed May 20, 2015 6:00 pm
by pipfromslitherine
AddVizWaitOnMove is (IIRC) the only way to do it - you would need to stack up everything you wanted to do in the viz queue to make good use of it. There is also IsUnitMoving, but I am not sure how robust it is.

Cheers

Pip