Jump to content

Recommended Posts

I try to spawn simple area marker 

_randomPosMap = [nil, []] call BIS_fnc_randomPos;
_areaMarker = createMarker ["side_mission_mrk", _randomPosMap];
_areaMarker setMarkerType "hd_dot";
_areaMarker = markerShape "ELLIPSE";
"side_mission_mrk" setMarkerSize [1000, 1000];
"side_mission_mrk" setMarkerBrush "SolidBorder";
"side_mission_mrk" setMarkerColor "ColorGUER";
"side_mission_mrk" setMarkerAlpha 1;

Spawns a giant dot covering the map. What I did wrong? What is the correct marker type for an area marker?

  
Update: Made is working, I am so happy! This is the working version: 

 

_randomPosMap = [nil, []] call BIS_fnc_randomPos;
_areaMarker = createMarker ["side_mission_mrk", _randomPosMap];
_areaMarker setMarkerShape "ELLIPSE";
"side_mission_mrk" setMarkerSize [1000, 1000];
"side_mission_mrk" setMarkerBrush "SolidBorder";
"side_mission_mrk" setMarkerColor "ColorGUER";
"side_mission_mrk" setMarkerAlpha 1;

 

Share this post


Link to post
Share on other sites

Looks like if you want to spawn area marker, you don't need to use setMarkerType command. And a top of that I had a mistake :
 

_areaMarker = markerShape "ELLIPSE";

instead of 

_areaMarker setMarkerShape "ELLIPSE";

 

Share this post


Link to post
Share on other sites

Really? A 1000 hd_dot ?
 

_randomPosMap = [nil, []] call BIS_fnc_randomPos;
_areaMarker = createMarker ["side_mission_mrk", _randomPosMap];
_areaMarker setMarkerShape "ellipse";
_areaMarker setMarkerSize [1000, 1000];
_areaMarker setMarkerBrush "SolidBorder";
_areaMarker setMarkerColor "ColorGUER";
_areaMarker setMarkerAlpha 1;

 

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×