{"name":"BIS_fnc_unitCaptureSimple","operator":null,"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","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 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","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":"unit to capture movement data from","types":["Object"],"since":null,"text":"unit: Object - unit to capture movement data from"},{"name":"duration","type":"Array","optional":false,"default":null,"description":"duration to capture for","types":["Array"],"since":null,"text":"duration: Array - duration to capture for"},{"name":"FPS","type":"Number","optional":true,"default":"20","description":"frames recorded per second (default 20). Limit is 1 - 100","types":["Number"],"since":null,"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","types":["Boolean"],"since":null,"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","types":["Number"],"since":null,"text":"startTime: Number - (Optional, default 0) starting time offset for the frame time"}],"returns":{"type":null,"types":["Script Handle"],"description":null,"text":"Script Handle\n\n> [!NOTE]\n> Copies to clipboard an Array of Arrays in format [frameTime, unitPosition, unitDirection] for each frame."}}],"examples":[{"text":"```sqf\n[BIS_Vehicle, 50, 30, true, 10] spawn BIS_fnc_unitCaptureSimple;\n```","code":["[BIS_Vehicle, 50, 30, true, 10] spawn BIS_fnc_unitCaptureSimple;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_unitCaptureFiring","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":[]}