{"name":"BIS_fnc_traceBullets","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Visualise unit's bullet trajectories. Can only be used on one shooter in a single instance.\n\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","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unit: Object"},{"name":"number","type":"Number","optional":true,"default":"20","description":"maximum displayed trajectories","types":["Number"],"since":null,"text":"number: Number - (Optional, default 20) maximum displayed trajectories"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"}}],"examples":[{"text":"```sqf\n[player] spawn BIS_fnc_traceBullets;\n```","code":["[player] spawn BIS_fnc_traceBullets;"]},{"text":"```sqf\n[player, 50] spawn BIS_fnc_traceBullets;\n```","code":["[player, 50] spawn BIS_fnc_traceBullets;"]},{"text":"```sqf\n[player, 0] spawn BIS_fnc_traceBullets; // remove bullet tracing\n```","code":["[player, 0] spawn BIS_fnc_traceBullets; // remove bullet tracing"]}],"multiplayer":null,"problems":null,"aliases":[],"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."}],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Diagnostic","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}