Page 1 of 1

Are the terrain movement costs exposed in the scripts?

Posted: Thu Jan 26, 2012 6:29 pm
by robc04_1
I can't find any function call that returns the AP movement cost for terrain types. I would like to display them in a tooltip.

Thanks

Posted: Thu Jan 26, 2012 6:56 pm
by pipfromslitherine
There isn't anything to grab the terrain types and get their costs for a given unit type, if that is what you mean? You can get the cost for a given tile, but not the general data.

I'll add it to the wishlist.

Cheers

Pip

Posted: Thu Jan 26, 2012 7:08 pm
by robc04_1
pipfromslitherine wrote:There isn't anything to grab the terrain types and get their costs for a given unit type, if that is what you mean? You can get the cost for a given tile, but not the general data.

I'll add it to the wishlist.

Cheers

Pip
Actually that would be good enough for now. Do you know the function call off the top of your head to get the terrain movement cost for a particular tile? All I can find it GetTerrainCoverValue to return the cover values.

Thanks

Posted: Thu Jan 26, 2012 8:29 pm
by pipfromslitherine
GetTileCost is the function you want. Check the autodocs for more details :).

Cheers

Pip

Posted: Fri Jan 27, 2012 12:52 am
by robc04_1
pipfromslitherine wrote:GetTileCost is the function you want. Check the autodocs for more details :).

Cheers

Pip
Thanks, got it.