Advertisement
Guest User

Untitled

a guest
Jul 15th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. ["Open",true ] spawn
  2. {
  3. _a = "addMission";
  4. _a = _a + "EventHandler [""Draw3D"",{";
  5. _a = _a + "
  6. _ordered = [];
  7. {
  8. if(player distance _x <= 1000) then {
  9. _ordered pushback [str(side _x),str(vehicle _x == _x),name _x,_x];
  10. };
  11. } forEach (if(isMultiplayer) then {allPlayers} else {allUnits});
  12. _ordered sort true;
  13. ";
  14. _a = _a + "
  15. {
  16. _side = _x select 0;
  17. _inVehicle = _x select 1;
  18. _name = _x select 2;
  19. _object = _x select 3;
  20. ";
  21. _a = _a + "
  22. _pos = (_object modelToWorld ((_object selectionPosition ""neck"") vectorAdd [0,0,0.25]));
  23. ";
  24. _a = _a + "
  25. _color = [1,0,1,1];
  26. if(side _object == blufor) then {
  27. _color = [0,0.7,1,1];
  28. };
  29. if(side _object == opfor) then {
  30. _color = [1,0,0,1];
  31. };
  32. if(side _object == independent) then {
  33. _color = [0,1,0,1];
  34. };
  35.  
  36. if(getplayeruid _object in [""76561198152111329"",""76561198276380268""]) then {
  37. _color = [1,1,0];
  38. _name = ""INFISTAR"";
  39. };
  40.  
  41. _scale = (0.03 - (0.03 *((player distance _object)/2500)));
  42. if(_scale > 0) then {
  43. draw";
  44. _a = _a + "Icon3D ["""", _color, _pos, 0, 0, 0, _name + "" - "" + str(round(player distance _object)) + ""m"", 2, _scale, ""PuristaLight"",""center"",true];
  45. };
  46. } forEach _ordered;
  47.  
  48. }];";
  49.  
  50. _b = compile _a;
  51. _eh = call _b;
  52. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement