Here are some instructions on how to use the BIS_fnc_locations function.
Firstly, you need to know there are 8 different kind of location types.
- CityCenter
- StrongpointArea
- FlatArea
- FlatAreaCity
- FlatAreaCitySmall
- Airport
- HQ
- Custom
- In the editor, place an Editor Module - Functions somewhere on your map.
- To display all default locations, place the following lines in your INIT.SQF file.
if (!isServer) exitWith{};
waitUntil {!isNil "bis_fnc_init"};_i = 0;
markLoc = {
_loc_type = _this select 0;
_color = _this select 1;
_locs = [_loc_type, [[0,0,0],1000000], true] call BIS_fnc_locations;
{
_i = _i + 1;
_n = format["x_%1", _i];
_m = createMarker [_n, position _x];
_m setMarkerType "Dot";
_m setMarkerColor _color;
} forEach _locs;
};["CityCenter", "ColorBlack"] call markLoc;
["StrongpointArea", "ColorRed"] call markLoc;
["FlatArea", "ColorBlue"] call markLoc;
["FlatAreaCity", "ColorGreen"] call markLoc;
["FlatAreaCitySmall", "Default"] call markLoc;
["Airport", "ColorWhite"] call markLoc;
["HQ", "ColorOrange"] call markLoc;processInitCommands;
finishMissionInit;
- Preview the mission, you should see the coloured markers indicating all the different types of map locations. See attached demo missions for quick viewing.
| Attachment | Size |
|---|---|
| cB_Locations_1-0.Chernarus.zip | 1.67 KB |
| cB_Locations_1-0.utes_.zip | 1.63 KB |




