{"name":"BIS_fnc_diagBulletCam","operator":null,"title":"BIS fnc diagBulletCam","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_diagBulletCam","revid":327735,"updated":"2022-07-13T10:30:15Z","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":"Add a \"bullet camera\" to shots fired by the specified unit.","syntaxes":[{"syntax":"unit call BIS_fnc_diagBulletCam","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":"the shooting unit. Can be a vehicle.","types":["Object"],"since":null,"text":"unit: Object - the shooting unit. Can be a vehicle."}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true when done","text":"Boolean - true when done"}}],"examples":[{"text":"```sqf\nplayer call BIS_fnc_diagBulletCam;\n```","code":["player call BIS_fnc_diagBulletCam;"]},{"text":"```sqf\n// bullet camera will be removed after 10s\n_unit = player;\n_unit call BIS_fnc_diagBulletCam;\n_ehIndex = _unit getVariable \"BIS_fnc_diagBulletCam_fired\";\nsleep 10;\n_unit removeEventHandler [\"fired\", _ehIndex];\n```","code":["// bullet camera will be removed after 10s\n_unit = player;\n_unit call BIS_fnc_diagBulletCam;\n_ehIndex = _unit getVariable \"BIS_fnc_diagBulletCam_fired\";\nsleep 10;\n_unit removeEventHandler [\"fired\", _ehIndex];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Diagnostic","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}