Marker for BlackMarket Fix

This commit is contained in:
He-Man 2020-07-29 18:05:51 +02:00
parent ab564a7562
commit 6c66b54721

View File

@ -278,7 +278,11 @@ _Blackmarket_BlackList = ["CfgBlackMarket", "Blackmarket_BlackList", []] call EP
{ {
if (_ShowBlackMarketTraders) then { if (_ShowBlackMarketTraders) then {
{
deletemarker _x;
} foreach (_x getVariable["MARKER_REF", []]);
_markers = ["StaticTrader",getpos _x,"BlackMarket Trader"] call EPOCH_server_createGlobalMarkerSet; _markers = ["StaticTrader",getpos _x,"BlackMarket Trader"] call EPOCH_server_createGlobalMarkerSet;
_x setVariable["MARKER_REF", _markers];
{_x setmarkercolor _BlackMarketMarkerColor;} foreach _markers; {_x setmarkercolor _BlackMarketMarkerColor;} foreach _markers;
}; };
_x setVariable ["AI_ITEMS", [_arrtmp,_arrcnttmp], true]; _x setVariable ["AI_ITEMS", [_arrtmp,_arrcnttmp], true];