GetTerrainCoverValue(x, y, index)
Posted: Fri Jul 19, 2013 7:33 pm
I am trying to find a good cover position to unload a unit. But using this function it gives me strange values, seems to give higher values to worse tile cover positions.
These are using index 0:
For example a road tile returns 65, when in game puts cover 18%
Light fortification returns 25, in game is 68
Forest returns 30, in game is 55
Is there another function that returns true cover value? I can work with the current one, but will need to understand it better, other indexes give different values.
These are using index 0:
For example a road tile returns 65, when in game puts cover 18%
Light fortification returns 25, in game is 68
Forest returns 30, in game is 55
Is there another function that returns true cover value? I can work with the current one, but will need to understand it better, other indexes give different values.