Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- objects = [];
- times = [];
- draw3d = {
- _start = [ [player modelToWorld [0,0,0], player modelToWorld (player selectionposition "RightShoulder")] call BIS_fnc_vectorDiff, visiblePosition player] call BIS_fnc_vectorAdd;;
- _maxDist = 30;
- {
- _dist = _start distance _x;
- _alpha = 1 - _dist/_maxDist;
- if(!(_x in objects)) then {
- objects set[count objects, _x];
- times set[count times, time];
- };
- _text = str(round((time-(times select (objects find _x)))*10.0)/10.0);
- drawIcon3D ["a3\ui_f\data\IGUI\RscingameUI\RscUnitInfoAirRTDFull\ico_cpt_park_on_ca.paa", [1,0,0,_alpha], visiblePosition _x, 1, 1, 0, _text, 1, 0.03, "default"];
- drawLine3D [visiblePosition _x, _start, [1,0,0,_alpha]];
- } forEach (_start nearObjects ["grenade",_maxDist]);
- _maxDist = 20;
- {
- _dist = _start distance _x;
- _pos = [ [_x modelToWorld [0,0,0], _x modelToWorld (_x selectionposition "RightShoulder")] call BIS_fnc_vectorDiff, visiblePosition _x] call BIS_fnc_vectorAdd;
- drawIcon3D ["a3\ui_f\data\IGUI\Cfg\TacticalDisplay\targetairtexture_gs.paa", [0.1,0.6,1,0.5], _pos, 0.8, .8, 0, "", 1, 0.03, "default"];
- if(_dist<_maxDist) then {
- _alpha = 1 - _dist/_maxDist;
- drawLine3D [_pos, _start, [0,0.1,1,_alpha]];
- };
- } forEach allUnits;
- };
- [] call draw3d;
- a=addMissionEventHandler["draw3d",{
- [] call draw3d;
- }];
- // triangle a3\ui_f\data\IGUI\Cfg\TacticalDisplay\targetairtexture_gs.paa
- // square a3\ui_f\data\IGUI\Cfg\TacticalDisplay\targettexture_gs.paa
- // heal a3\ui_f\data\IGUI\Cfg\Actions\heal_ca.paa
- // hexagon a3\ui_f\data\IGUI\Cfg\Cursors\select_ca.paa
Advertisement
Add Comment
Please, Sign In to add comment