i started to write an AI on my own.
I simply started with a Car Depot building. But my AI doesn't build it.
Here is the Code.
Code: Select all
function TestAI::BuildSomething()
{
local firstTile = AIMap.GetTileIndex(2,2);
local secondTile = AIMap.GetTileIndex(2,3);
AIRoad.BuildRoadDepot(firstTile, secondTile);
}

Thanks for help.