{"name":"BIS_fnc_unitPlay","operator":null,"title":"BIS fnc unitPlay","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_unitPlay","revid":349483,"updated":"2023-11-08T17:09:03Z","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":"Plays back input movement data on input unit.","syntaxes":[{"syntax":"[unit, data, varDone, stateIgnore, obsolete_1, obsolete_2, skipTime] spawn BIS_fnc_unitPlay","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":"unit to play movement data on","types":["Object"],"since":null,"text":"unit: Object - unit to play movement data on"},{"name":"data","type":"Array","optional":false,"default":null,"description":"movement data recorder by BIS_fnc_unitCapture","types":["Array"],"since":null,"text":"data: Array - movement data recorder by BIS_fnc_unitCapture"},{"name":"varDone","type":"Array","optional":true,"default":"`[]`","description":"variable to set on specified Object once playback has finished in format:\n- 0: Object - Target object\n- 1: String - Variable name","types":["Array"],"since":null,"text":"varDone: Array - (Optional, default `[]`) variable to set on specified Object once playback has finished in format:\n- 0: Object - Target object\n- 1: String - Variable name"},{"name":"stateIgnore","type":"Boolean","optional":true,"default":"false","description":"whether to ignore if the Unit is dead and/or cannot move","types":["Boolean"],"since":null,"text":"stateIgnore: Boolean - (Optional, default false) whether to ignore if the Unit is dead and/or cannot move"},{"name":"obsolete_1","type":"Nothing","optional":false,"default":null,"description":"obsolete param, preserved because of backward compatibility","types":["Nothing"],"since":null,"text":"obsolete_1: Nothing - obsolete param, preserved because of backward compatibility"},{"name":"obsolete_2","type":"Nothing","optional":false,"default":null,"description":"obsolete param, preserved because of backward compatibility","types":["Nothing"],"since":null,"text":"obsolete_2: Nothing - obsolete param, preserved because of backward compatibility"},{"name":"skipTime","type":"Number","optional":true,"default":"0","description":"amount of time to skip at the start of playback. For example if you wish to play the data from halfway instead of the start.","types":["Number"],"since":null,"text":"skipTime: Number - (Optional, default 0) amount of time to skip at the start of playback. For example if you wish to play the data from halfway instead of the start."}],"returns":{"type":"Boolean","types":["Boolean"],"description":"always true","text":"Boolean - always true"}}],"examples":[{"text":"```sqf\n[vehicle player, _unitCaptureData] spawn BIS_fnc_unitPlay\n```","code":["[vehicle player, _unitCaptureData] spawn BIS_fnc_unitPlay"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_unitCaptureFiring","BIS_fnc_unitCaptureSimple","BIS_fnc_unitPlaySimple","BIS_fnc_unitPlayFiring","BIS_fnc_unitCapture"],"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":[]}