Putting markers onto my server

Can't be entirely sure. I suggest you go into the 3D editor with the latest dayz mod enabled and see which ones show and which don't.
 
Easy to find out, open your editor, go to taviana with the latest dayz mod enabled and put one down. Then preview the mission and see if it shows. As simple as that.
 
it doesn't make much sense, if they work on the editor with the mods enabled then they should work on the mission file.

Show me the code and I'll try to figure out what's wrong.
 
o_O

Code:
_marker6 = create_marker ["AI", [16593.662,10684.837,0]];
_marker6 set_markerText "BANDIT CAMP";
_marker6 set_markerType "Town";
_marker6 set_markerColor "ColorRed";
_marker6 set_markerBrush "Solid";
marker6 = _marker6;

What the hell? Why did you add a "_" after "set"??? Change it to:

Code:
_marker6 = createmarker ["AI", [16593.662,10684.837,0]];
_marker6 setmarkerText "BANDIT CAMP";
_marker6 setmarkerType "Town";
_marker6 setmarkerColor "ColorRed";
_marker6 setmarkerBrush "Solid";
marker6 = _marker6;

and give it a shot.
 
o_O

Code:
_marker6 = create_marker ["AI", [16593.662,10684.837,0]];
_marker6 set_markerText "BANDIT CAMP";
_marker6 set_markerType "Town";
_marker6 set_markerColor "ColorRed";
_marker6 set_markerBrush "Solid";
marker6 = _marker6;

What the hell? Why did you add a "_" after "set"??? Change it to:

Code:
_marker6 = createmarker ["AI", [16593.662,10684.837,0]];
_marker6 setmarkerText "BANDIT CAMP";
_marker6 setmarkerType "Town";
_marker6 setmarkerColor "ColorRed";
_marker6 setmarkerBrush "Solid";
marker6 = _marker6;

and give it a shot.
thanks it worked
 
some statements here ...

a) to use "_this" is absolutely no problem here, why should it ?

b) the last line marker6=_marker6 is not needed if you define an object variable as you did.

c) if you use _this, it is needed.

d) if you do it as in your example, you define 2 object variables, of which one is not needed.

Is there any reason why you use a global variable for the object? I assume you are aware of the difference between private and global variables and their scope.

cheers, Sarge
 
Heres how i do it:


1) Save the 3D map when i'm done with all the custom stuff.
2) Port the 3d map to 2d
3) Open the 2d map, and use the "markers" to the right.
Can't remmember what ones is allowed and what isn't just try it out i guess.
4) Save the 2d map
5) ???
6) PROFIT!
 
No, not really Sarge. I'm a newb when it comes to scripting.

If I manage to get anything right it's merely because of luck and "blunt force".
 
No, not really Sarge. I'm a newb when it comes to scripting.

If I manage to get anything right it's merely because of luck and "blunt force".

Hey deathcall the marker shows up fine, but it's supposed to show text on the map right?
Code:
_this = createMarker ["Apocalypse Safe Zone", [2082.5757, 11771.802, 0.0001373291]];
_this setMarkerText "Apocalypse Safe Zone";
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Flag";
_this setMarkerColor "ColorRed";
_this setMarkerBrush "Solid";
_this setMarkerSize [300, 300];
_marker_0 = _this;
Nothing besides the red marker shows up. I want my players to know that this area is safe and devoid of zombies (thanks to Sarge's Zed Nuker w/ the deletevehicle modification!)
 
I just use the mission.sqm to add markers on to my in game map:

Scroll down to the class markers section and add what you want the marker to say, coords and colour
Code:
    class Markers
    {
        items=8;
        class Item0
        {
            position[]={7839.6055,381.33774,8414.7324};
            name="center";
            type="Empty";
        };
        class Item1
        {
            position[]={-18697.58,379.53012,25815.256};
            name="respawn_west";
            type="Empty";
        };
        class Item2
        {
            position[]={4932.3345,0.39950246,1989.1094};
            name="spawn0";
            type="Empty";
        };
        class Item3
        {
            position[]={2236.0391,0.63119155,1923.3735};
            name="spawn1";
            type="Empty";
        };
        class Item4
        {
            position[]={8738.1328,0.45720705,2122.1082};
            name="spawn2";
            type="Empty";
        };
        class Item5
        {
            position[]={10909.267,0.57597214,2422.3096};
            name="spawn3";
            type="Empty";
        };
        class Item6
        {
            position[]={13510.764,0.44504455,5249.3027};
            name="spawn4";
            type="Empty";
        };
        class item7
        {
            position[]={6513.1665,0.52493304,14083.807};
            name="MilitaryPoint";
            text="Evac Point";
            type="waypoint";
            colorName="ColorRed";
        };
    };
};

Make sure you change the items to add up to the total class markers.
 
I just use the mission.sqm to add markers on to my in game map:

Scroll down to the class markers section and add what you want the marker to say, coords and colour
Code:
    class Markers
    {
        items=8;
        class Item0
        {
            position[]={7839.6055,381.33774,8414.7324};
            name="center";
            type="Empty";
        };
        class Item1
        {
            position[]={-18697.58,379.53012,25815.256};
            name="respawn_west";
            type="Empty";
        };
        class Item2
        {
            position[]={4932.3345,0.39950246,1989.1094};
            name="spawn0";
            type="Empty";
        };
        class Item3
        {
            position[]={2236.0391,0.63119155,1923.3735};
            name="spawn1";
            type="Empty";
        };
        class Item4
        {
            position[]={8738.1328,0.45720705,2122.1082};
            name="spawn2";
            type="Empty";
        };
        class Item5
        {
            position[]={10909.267,0.57597214,2422.3096};
            name="spawn3";
            type="Empty";
        };
        class Item6
        {
            position[]={13510.764,0.44504455,5249.3027};
            name="spawn4";
            type="Empty";
        };
        class item7
        {
            position[]={6513.1665,0.52493304,14083.807};
            name="MilitaryPoint";
            text="Evac Point";
            type="waypoint";
            colorName="ColorRed";
        };
    };
};

Make sure you change the items to add up to the total class markers.

If I have to resort to that I will, but I would prefer to not have to modify my .sqm as much as possible. It just gets annoying after awhile
 
Back
Top