Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
_M11 = createMarker ["AD1", [10447.701, 10146.485, 0]];
_M11 setMarkerText "Join our website!";
_M11 setMarkerType "Flag";
_M11 setMarkerColor "ColorBlack";
_M11 setMarkerBrush "Solid";
AD1 = _M11;
_this = createMarker ["Out_of_Bounds_1", [13417.87, 5933.0527, 0]];
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [3, 3];
_marker_2 = _this;
_this = createMarker ["Out_of_Bounds_2", [13422.031, 5963.7505, 0]];
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [3, 3];
_marker_3 = _this;
[] execVM "Markers.sqf";
can you help me with my markers?No, if you add the mission.sqf as is it'll most likely break the server. I recommend to cut the code that you linked and create a new .sqf file named "Markers" or something like that, pasting this code inside. Put this file inside your dayz_mission folder (for the purpose of this example, on the root foolder).
After that, go to your init.sqf on (also ondayz_mission folder) and enter the following code on the bottom:
Code:[] execVM "Markers.sqf";
That should make it so you can see the markers in the server.
If you wish to try out this before uploading to the actual server, just create another mission and add a custom init.sqf file with only the code I've given you here. Make sure you put your "Markers.sqf" file on the root folder of that as well. Then run the mission. If all went well, the markers should be in your map as soon as the mission starts.
NOTE: Just in case, I'd change the _this of each marker to something different... like _Marker1 for the first example and _Marker2 for the second. Just to make sure it works.
can i upload my markers.sqf so you can see it?I can try. What's the problem?
would that work?
// SWITCHED _THIS WITH A DIFFERT NAME. I SUGGEST YOU GIVE EACH MARKER THEIR OWN NAME, EVEN IF SHORT ONE.
_PVPZ = createMarker ["PVP", [2985,5054, 0]]; // INSERT YOUR OWN COORDINATES HERE
_PVPZ setMarkerText "PVP ZONE";
_PVPZ setMarkerType "mil_objective"; // THIS MODEL IS ALLOWED IN DAYZ SO NO PROBLEM
_PVPZ setMarkerColor "ColorRed";
_PVPZ setMarkerBrush "Solid";
PVPZ= _PVPZ; // NOT ENTIRELY SURE THIS LINE IS NECESSARY, BUT WELL.
_PVP1 = createMarker ["PVP1", [1250, 5556, 0]]; // INSERT YOUR OWN COORDINATES HERE
_PVP1 setMarkerText "PVP ZONE";
_PVP1 setMarkerType "mil_objective";
_PVP1 setMarkerColor "ColorRed";
_PVP1 setMarkerBrush "Solid";
PVP1 = _PVP1;
so use those changes then it will work?Looks okay to me, I just made these changes:
Code:// SWITCHED _THIS WITH A DIFFERT NAME. I SUGGEST YOU GIVE EACH MARKER THEIR OWN NAME, EVEN IF SHORT ONE. _PVPZ = createMarker ["PVP", [2985,5054, 0]]; // INSERT YOUR OWN COORDINATES HERE _PVPZ setMarkerText "PVP ZONE"; _PVPZ setMarkerType "mil_objective"; // THIS MODEL IS ALLOWED IN DAYZ SO NO PROBLEM _PVPZ setMarkerColor "ColorRed"; _PVPZ setMarkerBrush "Solid"; PVPZ= _PVPZ; // NOT ENTIRELY SURE THIS LINE IS NECESSARY, BUT WELL. _PVP1 = createMarker ["PVP1", [1250, 5556, 0]]; // INSERT YOUR OWN COORDINATES HERE _PVP1 setMarkerText "PVP ZONE"; _PVP1 setMarkerType "mil_objective"; _PVP1 setMarkerColor "ColorRed"; _PVP1 setMarkerBrush "Solid"; PVP1 = _PVP1;
With this code, I created a new .sqf called "markertest" and called it with an execVM on my init, they were working fine.
i have tried that many times but it never worked thats why i am trying thisWell overall I'd suggest, as I said on the code snippet, to name each marker something different, don't go with _this, and make sure to change it accordingly through the entire marker. Other than that, it should be working with no problems. You should be able to add these through the mission.sqm as well by simply editing them in.