daily pastebin goal
47%
SHARE
TWEET

Untitled

a guest May 16th, 2018 107 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // by cuel
  2.  
  3. if (isDedicated ||((side _this) !=EAST)) exitWith {};
  4.  
  5. private ["_markArr", "_mark","_id", "_markercolor"];
  6. if (!isMultiplayer) then {playableunits = switchableUnits};
  7.  
  8. while {true} do {
  9. waitUntil {sleep 0.2; alive player};
  10. _markArr = [];
  11. {
  12. if (vehicle _x != _x && alive _x ) then {
  13.     if (driver (vehicle _x) == _x) then {
  14.     _id=format["trk_%1",_x];
  15.     _mark = createMarkerLocal [_id, [(getPosATL _x select 0),(getPosATL _x select 1)]];
  16.     _mark setMarkerShapeLocal "ICON";
  17.     _mark setMarkerTypeLocal "mil_box";
  18.     _markercolor = switch (side _x) do {
  19.             case west: {"ColorBlue"};
  20.             case east: {"ColorRed"};
  21.             case resistance: {"ColorGreen"};
  22.             default {"ColorWhite"};
  23.         };
  24.     _mark setMarkerColorLocal _markercolor;
  25.     sleep 0.02;
  26.     _markArr = _markArr + [_mark];
  27.     };
  28. };
  29.  
  30. } forEach playableUnits;
  31.     sleep 8;
  32.     {
  33.         deleteMarkerLocal _x
  34.     }forEach _markArr;
  35. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top