Skip to content

Commit

Permalink
Added marker place event handler to rescale nato markers.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBrostrom committed Aug 13, 2024
1 parent bf28fc7 commit 9ee8049
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cScripts/functions/init/fn_init_eventHandlers.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};
Expand Down

0 comments on commit 9ee8049

Please sign in to comment.