icdb

[ArmA3] Prevent drawing on the map (polyline)

May 29th, 2020
1,709
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.29 KB | None | 0 0
  1. // prevent drawing new lines
  2. addMissionEventHandler["Draw3D",{
  3.   {
  4.     if (markerShape _x=="POLYLINE") then {
  5.       deleteMarker _x;
  6.     }
  7.   } forEach allMapMarkers;
  8. }];
  9.  
  10. // delete current ones
  11. {
  12.   if (markerShape _x=="POLYLINE") then {
  13.     deleteMarker _x;
  14.   }
  15. } forEach allMapMarkers;
Advertisement
Add Comment
Please, Sign In to add comment