{"name":"BIS_fnc_unitCaptureSimple","title":"BIS fnc unitCaptureSimple","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_unitCaptureSimple","revid":347971,"updated":"2023-11-08T09:42:41Z","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 movement data of input unit over a specified period of time. Simplified.\nPressing the <kbd>Esc</kbd> key, the duration ending, or the unit dying ends the recording.","syntaxes":[{"syntax":"[unit, duration, FPS, firing, startTime] spawn BIS_fnc_unitCaptureSimple","params":[{"name":"unit","type":"Object","description":"unit to capture movement data from","type_expr":"Object"},{"name":"duration","type":"Array","description":"duration to capture for","type_expr":"Array"},{"name":"FPS","type":"Number","optional":true,"default":"20","description":"frames recorded per second. Limit is 1 - 100","type_expr":"Number","text":"FPS: Number - (Optional, default 20) frames recorded per second (default 20). Limit is 1 - 100"},{"name":"firing","type":"Boolean","optional":true,"default":"false","description":"if true, will record the input unit's weapon fire data as well","type_expr":"Boolean","text":"firing: Boolean - (Optional, default false) if true, will record the input unit's weapon fire data as well"},{"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","description":"> [!NOTE] > Copies to clipboard an Array of Arrays in format [frameTime, unitPosition, unitDirection] for each frame.","text":"Script Handle\n\n> [!NOTE]\n> Copies to clipboard an Array of Arrays in format [frameTime, unitPosition, unitDirection] for each frame."}}],"examples":[{"code":["[BIS_Vehicle, 50, 30, true, 10] spawn BIS_fnc_unitCaptureSimple;"]}],"see_also":["BIS_fnc_unitCaptureFiring","BIS_fnc_unitPlaySimple","BIS_fnc_unitPlayFiring","BIS_fnc_unitCapture","BIS_fnc_unitPlay"]}