Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Igor Nikolaev

Markers appearing after map zooming

Recommended Posts

I found this in campaign. When I zoom, markers appearing at the map. But when not, I can't see them. How to do such kind of markers on my own missions?

Before zooming:

0k1fVakNDQI.jpg


After zooming:

30UQ4oU6wI0.jpg

Share this post


Link to post
Share on other sites

Take a look at this command ctrlMapScale

 

You could write something like this:

ZOOM_MARKERS = ["MapMarker_1", ...];

(findDisplay 12) displayCtrl 51 ctrlAddEventHandler ["Draw",{
   _mapControl = _this select 0;
   _mapScale = ctrlMapScale _control;
   _zoomMarkers = ZOOM_MARKERS;
   for "_i" from 0 to ((count _zoomMarkers) - 1) do {
      _zoomMarker = _zoomMarkers select _i;
      if (_mapScale <= 0.1) then {
         _zoomMarker setMarkerAlphaLocal 1;
      } else {
         _zoomMarker setMarkerAlphaLocal 0;
      };
   };
};

I would have a look through the campaign mission .pbo's and see how the devs have gone about doing it. The missions you are looking for are in "mission_f_ep*.pbo"

Hope this points you in the right direction,

 

Bull

Share this post


Link to post
Share on other sites
Sign in to follow this  

×