User Tools

Site Tools


arma3:terrain:layers.cfg

ArmA 3 Layers.cfg

The layers.cfg file is where we configure our terrain types (concrete, grass, sand etc). The satellite mask image file RGB color values reflect where our terrain types are located on the terrain.

Layers.cfg is placed in tag_MyAddon\Source\ directory.

layers.cfg

class Layers
{
	// terrain types
	class tag_grass
	{
		// no need to specify actual texture file
		texture = "";
		material = "tag\tag_MyAddon\data\tag_grass.rvmat";
	};
 
	class tag_beach
	{
		texture = "";
		material = "tag\tag_MyAddon\data\tag_beach.rvmat";
	};
 
	class tag_dirt
	{
		texture = "";
		material = "tag\tag_MyAddon\data\tag_dirt.rvmat";
	};
	// etc...
};
class Legend
{
	// read from P:\ root directory
	picture = "mapLegend.png";
 
	class Colors
	{
		// RGB color values for terrain types (class layers)
		tag_grass[] = {{ 230, 230, 120 }};
		tag_beach[] = {{ 236, 230, 149 }};
		tag_dirt[] = {{ 226, 207, 129 }};
		// etc...
	};
};

mapLegend.png image can be located in P:\ root directory and then if you have two or more terrains you can leave out the directory from class legend and all your terrains will read this image from the same location, no need to duplicate same image with every terrain source dir.

arma3/terrain/layers.cfg.txt · Last modified: 2017-10-08 13:33 by snakeman