Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. // duplicated from capturePointMonitor.sqf
  2. _markerColorForSide = {
  3. private['_side', '_markerColor'];
  4. _side = _this select 0;
  5. //diag_log format["_markerColorForSide called with %1", _this];
  6.  
  7. _markerColor = "";
  8. switch (_side) do {
  9. case "WEST": { _markerColor = "colorblue"; };
  10. case "EAST": { _markerColor = "colorred"; };
  11. case "GUER": { _markerColor = "colorgreen"; };
  12. default { _markerColor = "coloryellow"; };
  13. };
  14.  
  15. //diag_log format["_markerColorForSide returning %1", _markerColor];
  16.  
  17. _markerColor
  18. };
  19.  
  20. // MAIN
  21.  
  22. {
  23. private ['_markerName', '_markerOwnerSide', '_color'];
  24. //diag_log format["OPC marker setup loop %1", _x];
  25. _markerName = _x select 0;
  26. _markerOwnerSide = _x select 3;
  27. if (_markerOwnerSide != "") then {
  28. _color = [_markerOwnerSide] call _markerColorForSide;
  29. _markerName setMarkerColor _color;
  30. //diag_log format ["OPC setting %1 to %2", _markerName, _color];
  31. };
  32. } forEach lastCapturePointDetails;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement