Jump to content
gc8

Hide unit icons

Recommended Posts

Hi

how do you hide unit icons for certain players? I mean these blue icons: https://imgur.com/BF9prqJ

 

And don't tell me it's only from difficulty settings :)

 

thx!

Share this post


Link to post
Share on other sites
Quote

And don't tell me it's only from difficulty settings :)

why not?

 

            mapContentFriendly=0;
            mapContentEnemy=0;
            mapContentMines=0;

Share this post


Link to post
Share on other sites
7 minutes ago, davidoss said:

why not?

 

            mapContentFriendly=0;
            mapContentEnemy=0;
            mapContentMines=0;

 

probably something I cannot change via script?

 

Share this post


Link to post
Share on other sites

Or description.ext setting will also do if possible?

 

Share this post


Link to post
Share on other sites
6 minutes ago, davidoss said:

You can try to handle with commands like

removeDrawIcon

updateDrawIcon

and other icon related commands

 

It doesn't say in those pages how to obtain the identifier needed for those commands

Share this post


Link to post
Share on other sites

I'm afraid the easiest way is to hide them by the difficulty setting, then display what you need with your condition in the EH draw.

Share this post


Link to post
Share on other sites

Hey that's nice command, just what I needed. Except it hides player too with the first parameter. Guess I have to draw player icon(s) my self then

Share this post


Link to post
Share on other sites

Yeah, that's what I do.

  • Like 1

Share this post


Link to post
Share on other sites

Anyone know path to the default player map icon?

Share this post


Link to post
Share on other sites

Think I found it:  "\a3\ui_f\data\igui\cfg\islandmap\iconplayer_ca.paa"

 

then just the center image

  • Thanks 1

Share this post


Link to post
Share on other sites

So you need something like:

 

disableMapIndicators [true,true,true,true];
cond = true;  // variable  you can toggle true/false for the player icon display
0 = findDisplay 12 displayCtrl 51 ctrlAddEventHandler ["Draw", "  
  _map = _this select 0;
  _color1 = [side player] call BIS_fnc_sideColor;
  _color2 = [1,0.3,0.3,1];
  _alpha = [0,1] select cond;
  _color1 set [3,_alpha];
  _color2 set [3,_alpha];
  _map drawIcon [  
    getText (configfile >> 'CfgVehicles' >> typeOf vehicle player >> 'icon'),  
    _color1,  
    getPosVisual player,  
    18,  
    18,  
    getDirVisual vehicle player  
  ];
  _map drawIcon [  
    '\a3\ui_f\data\igui\cfg\islandmap\iconplayer_ca.paa',  
    _color2,  
    getPosVisual player,  
    24,  
    24,  
    360  
  ];  
"];

 

  • 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

×