{"name":"BIS_fnc_unitCaptureFiring","title":"BIS fnc unitCaptureFiring","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_unitCaptureFiring","revid":336358,"updated":"2022-12-29T08:47:04Z","groups":["Scenes"],"status":"ok","games":{"arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2oa 1.50","arma3_since":"0.50","exec":"spawn","description":"Records weapon fire data of input unit over a specified period of time. Pressing the <kbd>ESC</kbd> key, the duration ending, or the unit dying ends the recording.","syntaxes":[{"syntax":"[unit, duration, startTime] spawn BIS_fnc_unitCaptureFiring","params":[{"name":"unit","type":"Object","description":"unit to capture weapon fire data from","type_expr":"Object"},{"name":"duration","type":"Number","description":"maximum duration to capture","type_expr":"Number"},{"name":"startTime","type":"Number","optional":true,"default":"0","description":"starting time offset for the frame time","type_expr":"Number","text":"startTime: Number - (Optional, default 0) starting time offset for the frame time"}],"returns":{"type":"Script Handle","type_expr":"Script Handle"}}],"examples":[{"code":["[BIS_Vehicle, 50, 10] spawn BIS_fnc_unitCaptureFiring;"]},{"code":["[[2.135, \"GAU8\", \"<NULL-object>\"], [2.157, \"GAU8\", \"<NULL-object>\"]] // output example"]}],"see_also":["BIS_fnc_unitCaptureSimple","BIS_fnc_unitPlaySimple","BIS_fnc_unitPlayFiring","BIS_fnc_unitCapture","BIS_fnc_unitPlay"]}