{"name":"BIS_fnc_traceBullets","title":"BIS fnc traceBullets","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_traceBullets","revid":329387,"updated":"2022-07-27T13:25:25Z","groups":["Diagnostic"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Visualise unit's bullet trajectories. Can only be used on one shooter in a single instance.\nIf you want to change the unit, first set `BIS_tracedShooter = nil` *then* execute the script again.","syntaxes":[{"syntax":"[unit, number] call BIS_fnc_traceBullets","params":[{"name":"unit","type":"Object","type_expr":"Object"},{"name":"number","type":"Number","optional":true,"default":"20","description":"maximum displayed trajectories","type_expr":"Number","text":"number: Number - (Optional, default 20) maximum displayed trajectories"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"code":["[player] spawn BIS_fnc_traceBullets;"]},{"code":["[player, 50] spawn BIS_fnc_traceBullets;"]},{"code":["[player, 0] spawn BIS_fnc_traceBullets; // remove bullet tracing"]}],"see_also":["drawLine3D"],"notes":[{"user":"Benargee","date":"2015-03-26T23:25:00Z","text":"Shooting bullets over water will show wavy lines that move with motion of the waves. This is probably due to using the wrong getPos variants when drawing 3D lines."}]}