Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.95 KB | None | 0 0
  1. // Script to disable map markers
  2.  
  3. // Side player:
  4. // west =           BLUFOR
  5. // east =           OPFOR
  6. // resistance =     Resistance
  7. // civ =            Civilian
  8.  
  9. // currentChannel:
  10. // 0 = Global
  11. // 1 = Side
  12. // 2 = Command
  13. // 3 = Group
  14. // 4 = Vehicle
  15. // 5 = Direct
  16. // 6 - 15 = Custom channels
  17.  
  18. sleep 1;
  19.  
  20. // BLUFOR (Disable Global only)
  21. // Double-Click Markers
  22. if (side player == west) then {
  23. ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ["MouseButtonDblClick",{
  24. [] spawn {
  25.     disableserialization;
  26.     _display = displayNull;
  27.     _timeout = diag_tickTime + 5;
  28.     waitUntil {_display = uiNamespace getVariable ["RscDisplayInsertMarker", displayNull]; (!isNull _display || (diag_tickTime > _timeout))};
  29.     if((!isNull _display) && {currentChannel in [0]}) then {
  30.     _display closeDisplay 0;
  31.     };
  32. };
  33. }];
  34. };
  35.  
  36. // Line Drawing
  37. if (side player == west) then {
  38. findDisplay 12 displayaddEventHandler ["KeyDown", {
  39.   _this select 1 == 29 && {currentChannel in [0]}
  40. }];
  41. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement