I want to fill a certain set of tiles in a TileMap with an autotile. Since this set will be changed dynamically, I want to do this through code. If I try to do something like
for tile in set: $TileMap.set_cell(tile.x, tile.y, 0)
only the first tile of the tileset will be used. As can be expected. How can I tell my TileMap to use the proper sub-tile of the autotile? Is there a flag in set_cell() or somewhere else that I'm not aware of?