gc8 977 Posted November 11, 2018 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
davidoss 551 Posted November 11, 2018 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
gc8 977 Posted November 11, 2018 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
gc8 977 Posted November 12, 2018 Or description.ext setting will also do if possible? Share this post Link to post Share on other sites
davidoss 551 Posted November 12, 2018 You can try to handle with commands like removeDrawIcon updateDrawIcon and other icon related commands Share this post Link to post Share on other sites
gc8 977 Posted November 12, 2018 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
davidoss 551 Posted November 12, 2018 Quote If you unPBO the following addon: @ui_f_data.pbo You can find the possible icons inside this folder: ui_f_data\map\vehicleicons For example: If you want to use "iconman_ca.paa" you will write "iconman" on the texture string. source; https://community.bistudio.com/wiki/drawIcon Share this post Link to post Share on other sites
pierremgi 4822 Posted November 12, 2018 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
HazJ 1289 Posted November 13, 2018 Command alternative: https://community.bistudio.com/wiki/disableMapIndicators 1 2 Share this post Link to post Share on other sites
gc8 977 Posted November 13, 2018 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
HazJ 1289 Posted November 14, 2018 Yeah, that's what I do. 1 Share this post Link to post Share on other sites
gc8 977 Posted November 14, 2018 Anyone know path to the default player map icon? Share this post Link to post Share on other sites
gc8 977 Posted November 14, 2018 Think I found it: "\a3\ui_f\data\igui\cfg\islandmap\iconplayer_ca.paa" then just the center image 1 Share this post Link to post Share on other sites
pierremgi 4822 Posted November 15, 2018 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 ]; "]; 1 Share this post Link to post Share on other sites