{"name":"BIS_fnc_diagBulletCam","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","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Add a \"bullet camera\" to shots fired by the specified unit.","syntaxes":[{"syntax":"unit call BIS_fnc_diagBulletCam","params":[{"name":"unit","type":"Object","description":"the shooting unit. Can be a vehicle.","type_expr":"Object"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true when done"}}],"examples":[{"code":["player call BIS_fnc_diagBulletCam;"]},{"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];"]}]}