Recently I have been making an ALIVE
mission, in which all the players start from one base. And I recalled the BIS campaign doing all the "in-base" markers (armory, briefing etc.) in a way that made them fade out when the player zoomed out on their map, thus removing a lot of clutter.
I have been looking into how I can do this for a couple of days now, but no matter how much I look through all script commands and functions I can not find a way to do this. Looking at the campaign hub missions in the editor did not help either, since those missions use hundreds of functions, and finding the right one would take to long time.
I did find out about setMarkerAlpha
, and this is obviously a piece of the puzzle. However the problem is now finding a way to actually get the current map zoom-level.
While searching for this I found this post on the BI-forums
but it really does not solve any issues as I can not get the ctrlMapScale
command to work and I can not find proper documentation for it.
Any help would be greatly appreciated!