Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Script to disable map markers
- // Side player:
- // west = BLUFOR
- // east = OPFOR
- // resistance = Resistance
- // civ = Civilian
- // currentChannel:
- // 0 = Global
- // 1 = Side
- // 2 = Command
- // 3 = Group
- // 4 = Vehicle
- // 5 = Direct
- // 6 - 15 = Custom channels
- sleep 1;
- // BLUFOR (Disable Global only)
- // Double-Click Markers
- if (side player == west) then {
- ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ["MouseButtonDblClick",{
- [] spawn {
- disableserialization;
- _display = displayNull;
- _timeout = diag_tickTime + 5;
- waitUntil {_display = uiNamespace getVariable ["RscDisplayInsertMarker", displayNull]; (!isNull _display || (diag_tickTime > _timeout))};
- if((!isNull _display) && {currentChannel in [0]}) then {
- _display closeDisplay 0;
- };
- };
- }];
- };
- // Line Drawing
- if (side player == west) then {
- findDisplay 12 displayaddEventHandler ["KeyDown", {
- _this select 1 == 29 && {currentChannel in [0]}
- }];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement