here is another question I have: I want to build a station near a industry, so that I can get and deliver goods. As I already know, the position of the Industry is the tile on the top right. But how can I find out the possible tiles I can build a station. From playing the game I know, that there is a maximum of 3 tiles beetween station and industry, so the station should be build at maximum 4 tiles away from the industry: So my fist idea was:
But this doesn't concern the size of the industry. So there are two questions:local area=AITileList();
area.AddRectangle(industry_tile-AIMap.GetTileIndex(4,4),industry_tile+AIMap.GetTileIndex(4,4));
a) How can I find out the size of an industry?
b) Is the maximum distance between station and industrie alwaly 4 tiles or is there any function giving me this constant for my AI?