Jump to content
Blitzen88

Fixing Marta with Knowsabout

Recommended Posts

I play missions using the Military Symbols module (aka Marta).  For those who are unaware, the module creates/places symbols over identified enemy groups. 
 

However, the module has a problem : once an enemy group has been identified, its marker will not be removed until that group has been destroyed. Although the module has commands to tweak its settings (ie “duration”), they dont work. 
 

However, would it be possibe to add a “Map” mission eventhandler which hides “unknown” groups when the map is opened? For example:

 

Quote

_enemyGroups = allGroups select { playerSide getFriend side _x <= 0.6 };

 

_unknowngroups = _enemygroups select { (side player) knowsabout leader _x < 1.5};

 

player setVariable [ "MARTA_HIDE", _unknowgroups]; 


However I cant get it to work. 

Share this post


Link to post
Share on other sites

Take a look at this:

 

Share this post


Link to post
Share on other sites
42 minutes ago, RCA3 said:

Take a look at this:

 

That has some interesting info but that user wanted to hide all enemy groups. I dont want to hide ALL enemy groups - I want to hide groups which have been previously identified and the player’s side should no longer know about (ie no longer in sight, far away). 

Share this post


Link to post
Share on other sites

Can anyone tell me why this doesnt work:

Spoiler

 

addMissionEventHandler[ "Map", {
    
    params[ "_isOpen", "_isForced" ];
    
    //Map is open
    if ( _isOpen ) then {
        
    _enemyGroups = allGroups select { playerSide getFriend side _x <= 0.6 };

    _knowngroups = _enemygroups select { player knowsabout leader _x > 1};
    
    _unknowngroups = _enemyGroups - _knowngroups;


if (count _unknowngroups > 0 ) then {hint "Player does not know about a group"} else {hint "Player Knows all groups"};
 

player setVariable ["MARTA_hide", [_unknowngroups]];
 
    };


//End
}];

 

 

 

But yet this works:

 

Spoiler

player setVariable ["MARTA_hide", [group Unit_1]];

 

Im confused.

Share this post


Link to post
Share on other sites
On 1/15/2024 at 8:59 PM, Blitzen88 said:

player setVariable ["MARTA_hide", [_unknowngroups]];

 

player setVariable ["MARTA_hide", _unknowngroups];

 

  • 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

×