2016-05-30 16:37:03 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
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
|
|
|
};
|