player2_dz

Untitled

Oct 25th, 2014
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1.  
  2. Creates a map marker for each pos in list
  3.  
  4. _count = 0;
  5. _LocalVarName = "_marker_0";
  6. _GlobalVarName = "marker_0";
  7.  
  8. {
  9. _count = _count + 1;
  10. _LocalVarName = "_marker_" + str(_count);
  11. _GlobalVarName = "marker_" + str(_count);
  12.  
  13. call compile (format["
  14. %1 = createMarker [""C"", %3];
  15. %1 setMarkerText ""C"";
  16. %1 setMarkerType ""Defend"";
  17. %1 setMarkerColor ""ColorRedAlpha"";
  18. %2 = %1;
  19. ",_LocalVarName,_GlobalVarName,_x]);
  20.  
  21. } forEach [[3847.0142, 4787.8877, 1.5258789e-005],
  22. [3841.5867, 4775.7349, -1.9062195],
  23. [10286.419, 2084.4519, 0.17802812],
  24. [6603.0518, 2465.3159, 1.2874603e-005],
  25. [11465.664, 11314.625, 9.1552734e-005],
  26. [11460.356, 11302.453, 6.1035156e-005],
  27. [10153.31, 1710.7061, -0.81663656],
  28. [12174.332, 12746.813, 0.044486191],
  29. [9577.7266, 11299.333, 0.4098191],
  30. [9580.4238, 11308.442, 1.5258789e-005],
  31. [4814.814, 10067.607, -6.1035156e-005],
  32. [4819.8657, 10086.853, -3.0517578e-005],
  33. [4861.4014, 5633.7153, 0.1487579],
  34. [1902.0646, 11947.333, -3.0517578e-005],
  35. [1980.0703, 11913.91, 1.5258789e-005],
  36. [2282.0522, 10825.35, 2],
  37. [2249.6692, 10832.145, -6.1035156e-005],
  38. [4048.4211, 2613.1758, 2.3841858e-006],
  39. [4040.615, 2602.0276, -2.3841858e-006],
  40. [2501.8564, 5090.1445, 0.014888633],
  41. [2555.4353, 5040.814, 2],
  42. [11036.93, 2705.0854, -0.45178086],
  43. [10962.532, 2754.1912, 4.0054321e-005]];
Advertisement
Add Comment
Please, Sign In to add comment