server steve21k Posted September 14, 2016 Report Share Posted September 14, 2016 Hi, looking for some help with map markers, I got map markers working, but they only show for the first person who joins the server, this is what I am using if (isServer) then { _unit_0 = objNull; if (true) then { _this = createMarker ["NWAF Aircraft Dealer", [4973.7749, 9948.7354, -338.98291]]; _this setMarkerText "NWAF Aircraft Dealer"; _this setMarkerType "Dot"; _this setMarkerColor "ColorGreen"; _this setMarkerBrush "Solid"; _marker_0 = _this; }; }; Link to comment Share on other sites More sharing options...
0 juandayz Posted September 14, 2016 Report Share Posted September 14, 2016 3 hours ago, server steve21k said: Hi, looking for some help with map markers, I got map markers working, but they only show for the first person who joins the server, this is what I am using if (isServer) then { _unit_0 = objNull; if (true) then { _this = createMarker ["NWAF Aircraft Dealer", [4973.7749, 9948.7354, -338.98291]]; _this setMarkerText "NWAF Aircraft Dealer"; _this setMarkerType "Dot"; _this setMarkerColor "ColorGreen"; _this setMarkerBrush "Solid"; _marker_0 = _this; }; }; markers.sqf (drop it into mpmissions\your instance\ ) Spoiler _this = createMarker ["NWAF Aircraft Dealer", [4973.7749, 9948.7354, -338.98291]]; _this setMarkerText "NWAF Aircraft Dealer"; _this setMarkerType "Dot"; _this setMarkerColor "ColorGreen"; _this setMarkerBrush "Solid"; _marker_0 = _this; now at buttom of your init.sqf [] execVM "markers.sqf"; Link to comment Share on other sites More sharing options...
0 juandayz Posted September 14, 2016 Report Share Posted September 14, 2016 for example here you have my markers.sqf Spoiler ///trafic trader _this = createMarker ["MilitaryTrafficker", [5415.3008, 3812.1658, -3.0517578e-005]]; _this setMarkerText "MilitaryTrafficker"; _this setMarkerType "mil_circle"; _this setMarkerColor "ColorBlue"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.5, 0.5]; _marker_0 = _this; // north east camping _this = createMarker ["lostcamp", [13359.685, 13845.786, -0.00014400482]]; _this setMarkerType "mil_unknown"; _this setMarkerColor "ColorYellow"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.5, 0.5]; _marker_1 = _this; //berezino farm and army camp _this = createMarker ["berezino", [12190.863, 9743.8408, -1.9073486e-006]]; _this setMarkerType "mil_unknown"; _this setMarkerColor "ColorYellow"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.5, 0.5]; _marker_2 = _this; //trade stary _this = createMarker ["stary", [6326.4805,7809.4888,304.99265]]; _this setMarkerText "STARY´S CENTRAL MARKET"; _this setMarkerType "Strongpoint"; _this setMarkerColor "ColorBlue"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.6, 0.6]; _marker_3 = _this; //trade bash _this = createMarker ["bash", [4064.2258,11665.938,365.13501]]; _this setMarkerText "TOWN TRADE BASH"; _this setMarkerType "Strongpoint"; _this setMarkerColor "ColorBlue"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.6, 0.6]; _marker_4 = _this; //trade klen _this = createMarker ["klen", [11447.91,11364.536,317.27109]]; _this setMarkerText "CAMP TRADE KLEN"; _this setMarkerType "Strongpoint"; _this setMarkerColor "ColorBlue"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.6, 0.6]; _marker_5 = _this; ////////////////////////////////////////////////////////////////////WORKING AREAS//////////////////////////////////////// _this = createMarker ["quarry", [13254.799, 6082.1851, 0]]; _this setMarkerText "Quarry"; _this setMarkerType "mil_circle"; _this setMarkerColor "ColorOrange"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.3, 0.3]; _marker_6 = _this; _this = createMarker ["trash", [11704.211, 9154.3115, 0]]; _this setMarkerText "Scrap Metal"; _this setMarkerType "mil_circle"; _this setMarkerColor "ColorOrange"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.3, 0.3]; _marker_7 = _this; _this = createMarker ["sawmill", [12733.892, 9658.2803, 8.740797]]; _this setMarkerText "Sawmill"; _this setMarkerType "mil_circle"; _this setMarkerColor "ColorOrange"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.3, 0.3]; _marker_8 = _this; _this = createMarker ["trasher", [1739.2727, 5092.0679, 0]]; _this setMarkerText "Trasher"; _this setMarkerType "mil_circle"; _this setMarkerColor "ColorOrange"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.3, 0.3]; _marker_9 = _this; _this = createMarker ["ammo", [6495.5977, 2539.189, 3.8146973e-006]]; _this setMarkerText "Arsenal Ammo"; _this setMarkerType "mil_circle"; _this setMarkerColor "ColorOrange"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.3, 0.3]; _marker_10 = _this; Link to comment Share on other sites More sharing options...
0 server steve21k Posted September 14, 2016 Author Report Share Posted September 14, 2016 1 hour ago, juandayz said: for example here you have my markers.sqf Reveal hidden contents ///trafic trader _this = createMarker ["MilitaryTrafficker", [5415.3008, 3812.1658, -3.0517578e-005]]; _this setMarkerText "MilitaryTrafficker"; _this setMarkerType "mil_circle"; _this setMarkerColor "ColorBlue"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.5, 0.5]; _marker_0 = _this; // north east camping _this = createMarker ["lostcamp", [13359.685, 13845.786, -0.00014400482]]; _this setMarkerType "mil_unknown"; _this setMarkerColor "ColorYellow"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.5, 0.5]; _marker_1 = _this; //berezino farm and army camp _this = createMarker ["berezino", [12190.863, 9743.8408, -1.9073486e-006]]; _this setMarkerType "mil_unknown"; _this setMarkerColor "ColorYellow"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.5, 0.5]; _marker_2 = _this; //trade stary _this = createMarker ["stary", [6326.4805,7809.4888,304.99265]]; _this setMarkerText "STARY´S CENTRAL MARKET"; _this setMarkerType "Strongpoint"; _this setMarkerColor "ColorBlue"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.6, 0.6]; _marker_3 = _this; //trade bash _this = createMarker ["bash", [4064.2258,11665.938,365.13501]]; _this setMarkerText "TOWN TRADE BASH"; _this setMarkerType "Strongpoint"; _this setMarkerColor "ColorBlue"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.6, 0.6]; _marker_4 = _this; //trade klen _this = createMarker ["klen", [11447.91,11364.536,317.27109]]; _this setMarkerText "CAMP TRADE KLEN"; _this setMarkerType "Strongpoint"; _this setMarkerColor "ColorBlue"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.6, 0.6]; _marker_5 = _this; ////////////////////////////////////////////////////////////////////WORKING AREAS//////////////////////////////////////// _this = createMarker ["quarry", [13254.799, 6082.1851, 0]]; _this setMarkerText "Quarry"; _this setMarkerType "mil_circle"; _this setMarkerColor "ColorOrange"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.3, 0.3]; _marker_6 = _this; _this = createMarker ["trash", [11704.211, 9154.3115, 0]]; _this setMarkerText "Scrap Metal"; _this setMarkerType "mil_circle"; _this setMarkerColor "ColorOrange"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.3, 0.3]; _marker_7 = _this; _this = createMarker ["sawmill", [12733.892, 9658.2803, 8.740797]]; _this setMarkerText "Sawmill"; _this setMarkerType "mil_circle"; _this setMarkerColor "ColorOrange"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.3, 0.3]; _marker_8 = _this; _this = createMarker ["trasher", [1739.2727, 5092.0679, 0]]; _this setMarkerText "Trasher"; _this setMarkerType "mil_circle"; _this setMarkerColor "ColorOrange"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.3, 0.3]; _marker_9 = _this; _this = createMarker ["ammo", [6495.5977, 2539.189, 3.8146973e-006]]; _this setMarkerText "Arsenal Ammo"; _this setMarkerType "mil_circle"; _this setMarkerColor "ColorOrange"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.3, 0.3]; _marker_10 = _this; thanks for your help, but nothing is showing I'm guessing I'm missing something Quote [] execVM "markers.sqf"; ///AircaftD _this = createMarker ["Aircraft Dealer", [4973.7749, 9948.7354, -338.98291]]; _this setMarkerText "Aircraft Dealer"; _this setMarkerType "Dot"; _this setMarkerColor "ColorBlack"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.5, 0.5]; _marker_0 = _this; ///BalotaAircaftD _this = createMarker ["Aircraft Dealer", [5241.19,2223.14,0]]; _this setMarkerText "Aircraft Dealer"; _this setMarkerType "Dot"; _this setMarkerColor "ColorBlack"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.5, 0.5]; _marker_1 = _this; ///kozlovka _this = createMarker ["Kozlovka Trader", [4696.0303, 4707.8257, 0.20974416]]; _this setMarkerText "Kozlovka Trader"; _this setMarkerType "mil_circle"; _this setMarkerColor "ColorBlack"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.5, 0.5]; _marker_2 = _this; ///SkalistyAI _this = createMarker ["Skalisty AI Island", [13714, 2930.62, 0.00144156]]; _this setMarkerText "Skalisty AI Island"; _this setMarkerType "Dot"; _this setMarkerColor "ColorRed"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.5, 0.5]; _marker_3 = _this; ///TrainyardKamenkaCity _this = createMarker ["The Trainyard", [1245.78,2399.35,0.00143385]]; _this setMarkerText "The Trainyard"; _this setMarkerType "mil_circle"; _this setMarkerColor "ColorBlack"; _this setMarkerBrush "Solid"; _this setMarkerSize [0.5, 0.5]; _marker_4 = _this; Link to comment Share on other sites More sharing options...
0 Tech_Support Posted September 14, 2016 Report Share Posted September 14, 2016 edit your mission.sqm in your mission.pbo look for class Markers section class Markers { items=23; class Item0 { position[]={7839.6055,381.33774,8414.7324}; name="center"; type="Empty"; }; class Item1 about item 7 Trader city markers edit to your liking class Item7 { position[]={6326.4805,304.99265,7809.4888}; name="Tradercitystary"; text="Trader City Stary"; type="mil_circle"; colorName="ColorOrange"; }; class Item8 { position[]={4361.4937,3,2259.9526}; name="wholesaleSouth"; text="Wholesaler"; type="mil_dot"; colorName="ColorBlack"; }; class Item9 { position[]={13532.614,3.0083523,6355.9497}; name="boatTraderEast"; text="Wholesaler"; type="mil_dot"; colorName="ColorBlack"; }; class Item10 { position[]={7989.3354,0.30462033,2900.9946}; name="BoatDealerSouth"; text="Boat Dealer"; type="mil_dot"; colorName="ColorGreen"; }; class Item11 { position[]={12060.471,158.85699,12638.533}; name="AirVehicles"; text="Aircraft Dealer"; type="mil_dot"; colorName="ColorGreen"; }; class Item12 { position[]={1606.6443,289.70795,7803.5156}; name="BanditDen"; text="Bandit Camp"; type="mil_dot"; colorName="ColorRed"; }; class Item13 { position[]={11447.91,317.27109,11364.536}; name="Klen"; text="Trader City Klen"; type="mil_circle"; colorName="ColorOrange"; }; class Item14 { position[]={13441.16,1.1406164,5429.3013}; name="BoatDealerEast"; text="Boat Dealer"; type="mil_dot"; colorName="ColorGreen"; }; class Item15 { position[]={4064.2258,365.13501,11665.938}; name="TradercityBash"; text="Trader City Bash"; type="mil_circle"; colorName="ColorOrange"; }; class Item16 { position[]={12944.227,210.19823,12766.889}; name="HeroTrader"; text="Hero Camp"; type="mil_dot"; colorName="ColorBlue"; }; class Item17 { position[]={5054.0127,14.798248,9736.8398}; name="AirVehicles"; text="Aircraft Dealer"; type="mil_dot"; colorName="ColorGreen"; }; class Item18 { position[]={6777.06, 0, 5597.89}; name="vehicle trader"; text="Vehicle Trader"; type="mil_dot"; colorName="ColorGreen"; }; class Item19 { position[]={13362.454, -1.335144e-005, 6721.7539}; name="Prison"; text="PELICAN BAY"; type="mil_dot"; colorName="ColorRed"; }; class Item20 { position[]={13449, -9.727478e-005, 10839.357}; name="ParisHilton"; text="PARIS HILTON"; type="mil_dot"; colorName="ColorPink"; }; class Item21 { position[]={7204.77, 0, 3011.87}; name="recruit ai backup"; text="Recruit Ai Backup"; type="mil_dot"; colorName="ColorOrange"; }; class Item22 { position[]={4843.2983,365.13501,2278.8335}; name="Centre for Disease Control"; text="Centre for Disease Control"; type="mil_triangle"; colorName="ColorYellow"; }; }; you can easy add more markers just change items=23; to match juandayz 1 Link to comment Share on other sites More sharing options...
0 server steve21k Posted September 14, 2016 Author Report Share Posted September 14, 2016 18 minutes ago, Tech_Support said: edit your mission.sqm in your mission.pbo look for class Markers section class Markers { items=23; class Item0 { position[]={7839.6055,381.33774,8414.7324}; name="center"; type="Empty"; }; class Item1 about item 7 Trader city markers edit to your liking class Item7 { position[]={6326.4805,304.99265,7809.4888}; name="Tradercitystary"; text="Trader City Stary"; type="mil_circle"; colorName="ColorOrange"; }; class Item8 { position[]={4361.4937,3,2259.9526}; name="wholesaleSouth"; text="Wholesaler"; type="mil_dot"; colorName="ColorBlack"; }; class Item9 { position[]={13532.614,3.0083523,6355.9497}; name="boatTraderEast"; text="Wholesaler"; type="mil_dot"; colorName="ColorBlack"; }; class Item10 { position[]={7989.3354,0.30462033,2900.9946}; name="BoatDealerSouth"; text="Boat Dealer"; type="mil_dot"; colorName="ColorGreen"; }; class Item11 { position[]={12060.471,158.85699,12638.533}; name="AirVehicles"; text="Aircraft Dealer"; type="mil_dot"; colorName="ColorGreen"; }; class Item12 { position[]={1606.6443,289.70795,7803.5156}; name="BanditDen"; text="Bandit Camp"; type="mil_dot"; colorName="ColorRed"; }; class Item13 { position[]={11447.91,317.27109,11364.536}; name="Klen"; text="Trader City Klen"; type="mil_circle"; colorName="ColorOrange"; }; class Item14 { position[]={13441.16,1.1406164,5429.3013}; name="BoatDealerEast"; text="Boat Dealer"; type="mil_dot"; colorName="ColorGreen"; }; class Item15 { position[]={4064.2258,365.13501,11665.938}; name="TradercityBash"; text="Trader City Bash"; type="mil_circle"; colorName="ColorOrange"; }; class Item16 { position[]={12944.227,210.19823,12766.889}; name="HeroTrader"; text="Hero Camp"; type="mil_dot"; colorName="ColorBlue"; }; class Item17 { position[]={5054.0127,14.798248,9736.8398}; name="AirVehicles"; text="Aircraft Dealer"; type="mil_dot"; colorName="ColorGreen"; }; class Item18 { position[]={6777.06, 0, 5597.89}; name="vehicle trader"; text="Vehicle Trader"; type="mil_dot"; colorName="ColorGreen"; }; class Item19 { position[]={13362.454, -1.335144e-005, 6721.7539}; name="Prison"; text="PELICAN BAY"; type="mil_dot"; colorName="ColorRed"; }; class Item20 { position[]={13449, -9.727478e-005, 10839.357}; name="ParisHilton"; text="PARIS HILTON"; type="mil_dot"; colorName="ColorPink"; }; class Item21 { position[]={7204.77, 0, 3011.87}; name="recruit ai backup"; text="Recruit Ai Backup"; type="mil_dot"; colorName="ColorOrange"; }; class Item22 { position[]={4843.2983,365.13501,2278.8335}; name="Centre for Disease Control"; text="Centre for Disease Control"; type="mil_triangle"; colorName="ColorYellow"; }; }; you can easy add more markers just change items=23; to match tried that yesterday, didn't work Link to comment Share on other sites More sharing options...
0 Tech_Support Posted September 14, 2016 Report Share Posted September 14, 2016 did you add it the same way to follow suit in the mission.sqm? edit your mission.sqm find class markers add this to the last block change the item no and update the items=; at the start of class markers and change the color if you want. class Itemnumberhere { position[]={4973.7749, 9948.7354, -338.98291}; name="NWAF Aircraft Dealer"; text="NWAF Aircraft Dealer"; type="mil_dot"; colorName="ColorGreen"; }; Link to comment Share on other sites More sharing options...
0 server steve21k Posted September 14, 2016 Author Report Share Posted September 14, 2016 thanks for all your help. its now sorted thanks to juandayz first post, I was just double checking every and noticed markers.sqf was saved as markers.sqf.sqf I wish I could say this was the first time something so simple and stupid stopped me doing things but its not. juandayz 1 Link to comment Share on other sites More sharing options...
0 juandayz Posted September 15, 2016 Report Share Posted September 15, 2016 7 hours ago, server steve21k said: thanks for all your help. its now sorted thanks to juandayz first post, I was just double checking every and noticed markers.sqf was saved as markers.sqf.sqf I wish I could say this was the first time something so simple and stupid stopped me doing things but its not. @Tech_Support way works too... you only need to change the coords... last coord must be in the middle and the middle at last. see originals coords from arma editor 4973.7749, 9948.7354, -338.98291 in mission.sqm must be: 4973.7749,-338.98291, 9948.7354 Link to comment Share on other sites More sharing options...
Question
server steve21k
Hi, looking for some help with map markers, I got map markers working, but they only show for the first person who joins the server, this is what I am using
if (isServer) then {
_unit_0 = objNull;
if (true) then
{
_this = createMarker ["NWAF Aircraft Dealer", [4973.7749, 9948.7354, -338.98291]];
_this setMarkerText "NWAF Aircraft Dealer";
_this setMarkerType "Dot";
_this setMarkerColor "ColorGreen";
_this setMarkerBrush "Solid";
_marker_0 = _this;
};
};
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now