{"name":"Location","title":"Location","type":"topic","url":"https://community.bistudio.com/wiki/Location","revid":378131,"updated":"2026-02-22T20:29:35Z","aliases":["Arma 2: CfgLocationTypes","location"],"markdown":"A location is an extended type of marker. For example city names displayed on the map are locations; their information can be accessed and modified with Location commands.\n\nLocation notion was introduced in Armed Assault v1.08.\n\n### Specifics\n\nLocations:\n- are defined in `bin\\Config.bin\\CfgLocationTypes` / `configFile >> \"CfgLocationTypes\"`\n- have a name, a side, a 3D position, a 2D area, and an orientation\n- have a non-scaling map representation (icon and/or text, depending on their class)\n- can be attached to objects, with all of the location's relevant properties inherited from the object\n- are local, their properties are not synchronised over the network\n\nTerrain built-in locations:\n- provide a way to find nearby high points, towns, etc.\n- are defined in an island's `.pew` file. When the island is exported to `.wrp` its `.hpp` file is also produced, containing the location names used in the `.pew` file. This `.hpp` file is then incorporated into the config for the island using an #include statement.\nThis section included in the island config ensures any locations set in the `.pew` file are included in the island during packing.\n\n| Modification | Terrain Location | Scripted Terrain Location<br>using createLocation#Syntax 2 | Scripted Location |\n|---|---|---|---|\n| Side | ✓ | ✓ | ✓ |\n| Size | ✗ | ✓ | ✓ |\n| Direction | ✗ | ✓ | ✓ |\n| setVariable/getVariable | ✗ | ✓ | ✓ |\n| 3D Position | ✗ | ✗ | ✓ |\n| Attach to an object | ✗ | ✗ | ✓ |\n| Deletion | ✗ | ✗ | ✓ |\n\n### Location Types\n\n#### Armed Assault\n\nPossible location types are:\n- Mount\n- Name\n- NameMarine\n- NameCityCapital\n- NameCity\n- NameVillage\n- NameLocal\n- Hill\n- ViewPoint\n- RockArea\n- BorderCrossing\n- VegetationBroadleaf\n- VegetationFir\n- VegetationPalm\n- VegetationVineyard\n\n#### Arma 2\n\n- Name\n- Strategic\n- StrongpointArea\n- FlatArea\n- FlatAreaCity\n- FlatAreaCitySmall\n- CityCenter\n- Airport\n- NameMarine\n- NameCityCapital\n- NameCity\n- NameVillage\n- NameLocal\n- Hill\n- ViewPoint\n- RockArea\n- BorderCrossing\n- VegetationBroadleaf\n- VegetationFir\n- VegetationPalm\n- VegetationVineyard\n\n#### Arma 3\n\n- Airport (on Tanoa only. Tanoan airports have their own location type. On Altis and Stratis, airports are **NameLocal**)\n- Area\n- BorderCrossing\n- CityCenter\n- CivilDefense\n- CulturalProperty\n- DangerousForces\n- Flag\n- FlatArea\n- FlatAreaCity\n- FlatAreaCitySmall\n- Hill\n- HistoricalSite\n- Invisible\n- Mount\n- Name\n- NameCity\n- NameCityCapital\n- NameLocal (will return names like Airport)\n- NameMarine\n- NameVillage\n- RockArea\n- SafetyZone\n- Strategic\n- StrongpointArea\n- VegetationBroadleaf\n- VegetationFir\n- VegetationPalm\n- VegetationVineyard\n- ViewPoint\n- b_air\n- b_antiair\n- b_armor\n- b_art\n- b_hq\n- b_inf\n- b_installation\n- b_maint\n- b_mech_inf\n- b_med\n- b_mortar\n- b_motor_inf\n- b_naval\n- b_plane\n- b_recon\n- b_service\n- b_support\n- b_uav\n- b_unknown\n- c_air\n- c_car\n- c_plane\n- c_ship\n- c_unknown\n- fakeTown\n- group_0\n- group_1\n- group_10\n- group_11\n- group_2\n- group_3\n- group_4\n- group_5\n- group_6\n- group_7\n- group_8\n- group_9\n- n_air\n- n_antiair\n- n_armor\n- n_art\n- n_hq\n- n_inf\n- n_installation\n- n_maint\n- n_mech_inf\n- n_med\n- n_mortar\n- n_motor_inf\n- n_naval\n- n_plane\n- n_recon\n- n_service\n- n_support\n- n_uav\n- n_unknown\n- o_air\n- o_antiair\n- o_armor\n- o_art\n- o_hq\n- o_inf\n- o_installation\n- o_maint\n- o_mech_inf\n- o_med\n- o_mortar\n- o_motor_inf\n- o_naval\n- o_plane\n- o_recon\n- o_service\n- o_support\n- o_uav\n- o_unknown\n- respawn_air\n- respawn_armor\n- respawn_inf\n- respawn_motor\n- respawn_naval\n- respawn_para\n- respawn_plane\n- respawn_unknown\n- u_installation","sections":[{"heading":null,"level":1,"markdown":"A location is an extended type of marker. For example city names displayed on the map are locations; their information can be accessed and modified with Location commands.\n\nLocation notion was introduced in Armed Assault v1.08."},{"heading":"Specifics","level":3,"markdown":"Locations:\n- are defined in `bin\\Config.bin\\CfgLocationTypes` / `configFile >> \"CfgLocationTypes\"`\n- have a name, a side, a 3D position, a 2D area, and an orientation\n- have a non-scaling map representation (icon and/or text, depending on their class)\n- can be attached to objects, with all of the location's relevant properties inherited from the object\n- are local, their properties are not synchronised over the network\n\nTerrain built-in locations:\n- provide a way to find nearby high points, towns, etc.\n- are defined in an island's `.pew` file. When the island is exported to `.wrp` its `.hpp` file is also produced, containing the location names used in the `.pew` file. This `.hpp` file is then incorporated into the config for the island using an #include statement.\nThis section included in the island config ensures any locations set in the `.pew` file are included in the island during packing.\n\n| Modification | Terrain Location | Scripted Terrain Location<br>using createLocation#Syntax 2 | Scripted Location |\n|---|---|---|---|\n| Side | ✓ | ✓ | ✓ |\n| Size | ✗ | ✓ | ✓ |\n| Direction | ✗ | ✓ | ✓ |\n| setVariable/getVariable | ✗ | ✓ | ✓ |\n| 3D Position | ✗ | ✗ | ✓ |\n| Attach to an object | ✗ | ✗ | ✓ |\n| Deletion | ✗ | ✗ | ✓ |"},{"heading":"Location Types","level":3,"markdown":""},{"heading":"Armed Assault","level":4,"markdown":"Possible location types are:\n- Mount\n- Name\n- NameMarine\n- NameCityCapital\n- NameCity\n- NameVillage\n- NameLocal\n- Hill\n- ViewPoint\n- RockArea\n- BorderCrossing\n- VegetationBroadleaf\n- VegetationFir\n- VegetationPalm\n- VegetationVineyard"},{"heading":"Arma 2","level":4,"markdown":"- Name\n- Strategic\n- StrongpointArea\n- FlatArea\n- FlatAreaCity\n- FlatAreaCitySmall\n- CityCenter\n- Airport\n- NameMarine\n- NameCityCapital\n- NameCity\n- NameVillage\n- NameLocal\n- Hill\n- ViewPoint\n- RockArea\n- BorderCrossing\n- VegetationBroadleaf\n- VegetationFir\n- VegetationPalm\n- VegetationVineyard"},{"heading":"Arma 3","level":4,"markdown":"- Airport (on Tanoa only. Tanoan airports have their own location type. On Altis and Stratis, airports are **NameLocal**)\n- Area\n- BorderCrossing\n- CityCenter\n- CivilDefense\n- CulturalProperty\n- DangerousForces\n- Flag\n- FlatArea\n- FlatAreaCity\n- FlatAreaCitySmall\n- Hill\n- HistoricalSite\n- Invisible\n- Mount\n- Name\n- NameCity\n- NameCityCapital\n- NameLocal (will return names like Airport)\n- NameMarine\n- NameVillage\n- RockArea\n- SafetyZone\n- Strategic\n- StrongpointArea\n- VegetationBroadleaf\n- VegetationFir\n- VegetationPalm\n- VegetationVineyard\n- ViewPoint\n- b_air\n- b_antiair\n- b_armor\n- b_art\n- b_hq\n- b_inf\n- b_installation\n- b_maint\n- b_mech_inf\n- b_med\n- b_mortar\n- b_motor_inf\n- b_naval\n- b_plane\n- b_recon\n- b_service\n- b_support\n- b_uav\n- b_unknown\n- c_air\n- c_car\n- c_plane\n- c_ship\n- c_unknown\n- fakeTown\n- group_0\n- group_1\n- group_10\n- group_11\n- group_2\n- group_3\n- group_4\n- group_5\n- group_6\n- group_7\n- group_8\n- group_9\n- n_air\n- n_antiair\n- n_armor\n- n_art\n- n_hq\n- n_inf\n- n_installation\n- n_maint\n- n_mech_inf\n- n_med\n- n_mortar\n- n_motor_inf\n- n_naval\n- n_plane\n- n_recon\n- n_service\n- n_support\n- n_uav\n- n_unknown\n- o_air\n- o_antiair\n- o_armor\n- o_art\n- o_hq\n- o_inf\n- o_installation\n- o_maint\n- o_mech_inf\n- o_med\n- o_mortar\n- o_motor_inf\n- o_naval\n- o_plane\n- o_recon\n- o_service\n- o_support\n- o_uav\n- o_unknown\n- respawn_air\n- respawn_armor\n- respawn_inf\n- respawn_motor\n- respawn_naval\n- respawn_para\n- respawn_plane\n- respawn_unknown\n- u_installation"}],"categories":["Data Types","Introduced with Armed Assault version 1.08"],"groups":["Data Types"]}