2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2017-06-08 13:31:51 +00:00
|
|
|
/*
|
|
|
|
* Author: ACE-Team
|
|
|
|
* Dev things
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* call ace_frag_fnc_dev_trackTrace
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2016-10-26 22:16:31 +00:00
|
|
|
params ["_args", "_pfhID"];
|
2016-09-04 14:44:22 +00:00
|
|
|
_args params ["_tracerObj", "_index"];
|
2016-05-30 16:37:03 +00:00
|
|
|
|
2016-10-26 22:16:31 +00:00
|
|
|
if (alive _tracerObj && {!(GVAR(traces) isEqualTo [])}) then {
|
2016-09-04 14:44:22 +00:00
|
|
|
private _data = GVAR(traces) select _index;
|
|
|
|
private _positions = _data select 4;
|
2016-10-26 22:16:31 +00:00
|
|
|
_positions pushBack [getPos _tracerObj, vectorMagnitude (velocity _tracerObj)];
|
2016-05-30 16:37:03 +00:00
|
|
|
} else {
|
2016-10-26 22:16:31 +00:00
|
|
|
[_pfhID] call CBA_fnc_removePerFrameHandler;
|
2016-05-30 16:37:03 +00:00
|
|
|
};
|