{"name":"BIS_fnc_unitPlaySimple","operator":null,"title":"BIS fnc unitPlaySimple","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_unitPlaySimple","revid":349494,"updated":"2023-11-08T17:09:09Z","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. Simplified.","syntaxes":[{"syntax":"[unit, data, varDone, stateIngnore, debug, sleep, skipTime] spawn BIS_fnc_unitPlaySimple","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 to use","types":["Array"],"since":null,"text":"data: Array - movement data to use"},{"name":"varDone","type":"Array","optional":true,"default":"`[]`","description":"variable to set on specified Object once playback has finished in format:\n- 0: Object, Group or Namespace - target\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, Group or Namespace - target\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":"debug","type":"Boolean","optional":true,"default":"false whether to give debug information on played frames per second","description":null,"types":["Boolean"],"since":null,"text":"debug: Boolean - (Optional, default false whether to give debug information on played frames per second"},{"name":"sleep","type":"Number","optional":true,"default":"0","description":"time to sleep between frames. This is if you want to be recording another unit and playing back movement data on another as well. Limit is 0-1 seconds.","types":["Number"],"since":null,"text":"sleep: Number - (Optional, default 0) time to sleep between frames. This is if you want to be recording another unit and playing back movement data on another as well. Limit is 0-1 seconds."},{"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":"Script Handle","types":["Script Handle"],"description":"script handle","text":"Script Handle - script handle"}}],"examples":[{"text":"```sqf\nprivate _capturedData = [[0, [8208.26, 1953.13, 296.04], 67]];\n[BIS_Vehicle, _capturedData, [BIS_Object, \"DoneRecording\"], true, false, 0.2, 5] spawn BIS_fnc_unitPlaySimple;\n```","code":["private _capturedData = [[0, [8208.26, 1953.13, 296.04], 67]];\n[BIS_Vehicle, _capturedData, [BIS_Object, \"DoneRecording\"], true, false, 0.2, 5] spawn BIS_fnc_unitPlaySimple;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_unitCaptureFiring","BIS_fnc_unitCaptureSimple","BIS_fnc_unitPlayFiring","BIS_fnc_unitPlay","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":[]}