ACE3/addons/vehicledamage/functions/fnc_debug_drawLinesPFH.sqf
2015-05-17 12:04:10 -07:00

17 lines
510 B
Plaintext

#include "script_component.hpp"
{
private["_vehicle", "_fromVector", "_toVector"];
_vehicle = _x select 0;
_fromVector = _x select 1;
_toVector = _x select 2;
if(!isNil "_vehicle") then {
if((typeName _vehicle) == "OBJECT") then {
_toVector = _vehicle modelToWorldVisual _toVector;
_fromVector = _vehicle modelToWorldVisual _fromVector;
};
};
drawLine3D [_fromVector, _toVector, [1,1,1,1]];
} forEach GVAR(debug_lines);