From 9ee8049ed45494f18fe92e1912f1d40502985cee Mon Sep 17 00:00:00 2001 From: AndreasBrostrom Date: Tue, 13 Aug 2024 11:11:04 +0200 Subject: [PATCH] Added marker place event handler to rescale nato markers. --- cScripts/functions/init/fn_init_eventHandlers.sqf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cScripts/functions/init/fn_init_eventHandlers.sqf b/cScripts/functions/init/fn_init_eventHandlers.sqf index ce28c23fa..bac55350a 100644 --- a/cScripts/functions/init/fn_init_eventHandlers.sqf +++ b/cScripts/functions/init/fn_init_eventHandlers.sqf @@ -30,6 +30,20 @@ if (GVAR(isPlayer)) then { //}] call CBA_fnc_addEventHandler; }; +// Scale adjuster for +addMissionEventHandler ["MarkerCreated", { + params ["_marker", "_channelNumber", "_owner", "_local"]; + switch (markerType _marker) do { + case "My_classname"; // test marker + case "_markerRescale" { + private _size = getMarkerSize _marker; + if (_size#0 == 1 && _size#1 == 1) then { + _marker setMarkerSize "1.55" + }; + }; + default {}; + }; +}]; // Server Events if (!isServer) exitWith {};