Files
Ardennes_02_Battle_of_St_Vi…/initPlayerLocal.sqf
T
2026-05-03 17:46:36 +10:00

19 lines
570 B
Plaintext

waitUntil {!isNull findDisplay 12};
findDisplay 12 displayCtrl 51 ctrlAddEventHandler ["Draw", {
if (visibleMap) then {
_scale = 0.17 / ctrlMapScale (_this select 0);
{
_m = "#markerSize_" + _x;
if (markerShape _x == "ICON") then {
if (isNil {missionNamespace getVariable _m}) then {
missionNamespace setVariable [_m, markerSize _x];
};
_x setMarkerSizeLocal [
((missionNamespace getVariable _m) select 0) * _scale,
((missionNamespace getVariable _m) select 1) * _scale
];
};
} forEach allMapMarkers;
};
}];