2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2017-06-08 13:31:51 +00:00
|
|
|
/*
|
|
|
|
* Author: ACE-Team
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
2023-11-08 18:00:05 +00:00
|
|
|
* call ace_frag_fnc_dev_drawTraces
|
2017-06-08 13:31:51 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2016-05-30 16:37:03 +00:00
|
|
|
{
|
2017-04-11 15:33:56 +00:00
|
|
|
_x params ["", "", "", "", "_positions", "_color"];
|
2016-10-26 22:16:31 +00:00
|
|
|
private _index = 0;
|
|
|
|
private _max = count _positions;
|
2017-04-11 15:33:56 +00:00
|
|
|
// private _lastSpd = [];
|
2016-10-26 22:16:31 +00:00
|
|
|
private _lastPos = [];
|
2016-05-30 16:37:03 +00:00
|
|
|
while {_index < _max} do {
|
|
|
|
_data1 = _positions select _index;
|
2016-10-26 22:16:31 +00:00
|
|
|
_data2 = _positions select ([_index + ACE_TRACE_DRAW_INC, _max - 1] select (_index + ACE_TRACE_DRAW_INC >= _max));
|
2016-05-30 16:37:03 +00:00
|
|
|
|
|
|
|
_pos1 = _data1 select 0;
|
|
|
|
_pos2 = _data2 select 0;
|
2016-10-26 22:16:31 +00:00
|
|
|
ADD(_index,ACE_TRACE_DRAW_INC);
|
2016-05-30 16:37:03 +00:00
|
|
|
|
|
|
|
drawLine3D [_pos1, _pos2, _color];
|
|
|
|
_lastPos = _pos2;
|
2017-04-11 15:33:56 +00:00
|
|
|
// _lastSpd = _data1 select 1;
|
2016-05-30 16:37:03 +00:00
|
|
|
};
|
2016-10-26 22:16:31 +00:00
|
|
|
// drawIcon3D ["", [1,0,0,1], _lastPos, 0, 0, 0, format ["%1m/s", _lastSpd], 1, 0.05, "RobotoCondensed"];
|
2016-05-30 16:37:03 +00:00
|
|
|
} forEach GVAR(traces);
|