Jump to content
J.Larsson

How to hide floating marker and objective markers in 3d view GUI? [solved]

Recommended Posts

I am not even sure what to call them,
https://imgur.com/a/tBcXlzI

OlaqeL6.jpg

 

QqYIcFX.jpg

 

So I want these markers to be hidden in game, how do I proceed to make it work.


I am very new to arma 3 editor and bad with scrips, please ad instructions.
(i have google this issue but did not find what i was looking for.)

Special thanks to Larrow.
 

Solved

step 1: create a init.sqf file

 

Step 2: copy this script and past it in the init file


 

Spoiler

{
_sector = _x;
{
    _trigger = _x;
    _markerArea = (_trigger getVariable "markers") select 0;
    _markerArea setMarkerAlpha 0;
}forEach (_sector getVariable "areas");
}forEach (missionNamespace getVariable "BIS_fnc_moduleSector_sectors");
h = [] spawn {
while {true} do {
    _toHide = [];
    {
        _sector = _x;
        if (player distance _sector > 10) then {
            _toHide set [count _toHide, _sector];
            _h = _sector spawn {
                waitUntil {player distance _this < 10};
                missionNamespace setVariable ["BIS_fnc_moduleSector_sectors", (missionNamespace getVariable "BIS_fnc_moduleSector_sectors") + [_this]];
            };
        };
    }forEach (missionNamespace getVariable "BIS_fnc_moduleSector_sectors");
    missionNamespace setVariable ["BIS_fnc_moduleSector_sectors", (missionNamespace getVariable "BIS_fnc_moduleSector_sectors") - _toHide];
};
};


step 3: result
 

Spoiler

 


zYPkEyG.jpg

R7W1kho.jpg

 

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

×