khalcifer reacted to
juandayz in PVP AREA
@khalcifer Seeing that your markers only change in the position values.. you can make it a lil more clean.. see
//==============USER CONFIG =============\\
//====COORDS
_pos0= [6723.59, 2583.92,0];//cherno
_pos1= [2783.23, 5379.68,0];//zeleno
_pos2= [4531.69, 10258.1,0];//norhWestAirfield
_pos3= [8467.73, 6674.86,0];//guglovo
_pos4= [12045.7, 9090.42,0];//berezino
_pos5= [7605.05, 5102.02,0];//Mogilevka
_pos6= [10586.4, 14212.4,0];//event
//==RATIO MARKERS
_Ratio_setMarkerType = "hd_warning";
_Ratio_setMarkerColor = "ColorBlueFaded50";
_Ratio_setMarkerBrush = "Grid";
_Ratio_setMarkerSize = [450, 450];
//==SOLID MARKERS
_Solid_setMarkerType = "Dot";
_Solid_setMarkerColor = "ColorBlack";
_Solid_setMarkerBrush = "Solid";
_Solid_setMarkerSize = [0.8, 0.8];
//============== USER CONFIG =============\\
fn_solid = {_this setMarkerText "PVP Area";_this setMarkerType _Solid_setMarkerType;_this setMarkerColor _Solid_setMarkerColor;_this setMarkerBrush _Solid_setMarkerBrush;_this setMarkerSize _Solid_setMarkerSize;};
fn_ratio = {_this setMarkerShape "ELLIPSE";_this setMarkerType _Ratio_setMarkerType;_this setMarkerColor _Ratio_setMarkerColor;_this setMarkerBrush _Ratio_setMarkerBrush;_this setMarkerSize _Ratio_setMarkerSize;};
_this = createMarker ["m0",_pos0];call fn_solid;
_this = createMarker ["m1",_pos1];call fn_solid;
_this = createMarker ["m2",_pos2];call fn_solid;
_this = createMarker ["m3",_pos3];call fn_solid;
_this = createMarker ["m4",_pos4];call fn_solid;
_this = createMarker ["m5",_pos5];call fn_solid;
_this = createMarker ["m6",_pos6];call fn_solid;
_this = createMarker ["m0a",_pos0];call fn_ratio;
_this = createMarker ["m1a",_pos1];call fn_ratio;
_this = createMarker ["m2a",_pos2];call fn_ratio;
_this = createMarker ["m3a",_pos3];call fn_ratio;
_this = createMarker ["m4a",_pos4];call fn_ratio;
_this = createMarker ["m5a",_pos5];call fn_ratio;
_this = createMarker ["m6a",_pos6];call fn_ratio;