{"name":"BIS_fnc_unitCaptureFiring","operator":null,"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","replaced_by":[],"games":[{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"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","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":"unit to capture weapon fire data from","types":["Object"],"since":null,"text":"unit: Object - unit to capture weapon fire data from"},{"name":"duration","type":"Number","optional":false,"default":null,"description":"maximum duration to capture","types":["Number"],"since":null,"text":"duration: Number - maximum duration to capture"},{"name":"startTime","type":"Number","optional":true,"default":"0","description":"starting time offset for the frame time","types":["Number"],"since":null,"text":"startTime: Number - (Optional, default 0) starting time offset for the frame time"}],"returns":{"type":"Script Handle","types":["Script Handle"],"description":null,"text":"Script Handle"}}],"examples":[{"text":"```sqf\n[BIS_Vehicle, 50, 10] spawn BIS_fnc_unitCaptureFiring;\n```","code":["[BIS_Vehicle, 50, 10] spawn BIS_fnc_unitCaptureFiring;"]},{"text":"```sqf\n[[2.135, \"GAU8\", \"<NULL-object>\"], [2.157, \"GAU8\", \"<NULL-object>\"]] // output example\n```","code":["[[2.135, \"GAU8\", \"<NULL-object>\"], [2.157, \"GAU8\", \"<NULL-object>\"]] // output example"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_unitCaptureSimple","BIS_fnc_unitPlaySimple","BIS_fnc_unitPlayFiring","BIS_fnc_unitCapture","BIS_fnc_unitPlay"],"notes":[],"categories":["Arma 2: Operation Arrowhead: Functions","Arma 2: Operation Arrowhead: New Functions","Arma 3: Functions","Function Group: Scenes","Functions","Introduced with Arma 2: Operation Arrowhead version 1.50","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}