---
name: "BIS_fnc_unitPlaySimple"
type: function
status: ok
groups: ["Scenes"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_unitPlaySimple
revid: 349494
updated: 2023-11-08T17:09:09Z
---

# BIS_fnc_unitPlaySimple

*Function · Scenes · Arma 3 v0.50 · introduced in Arma 2: Operation Arrowhead v1.50*

Locality: executed with **spawn**

## Description

Plays back input movement data on input unit. Simplified.

## Syntax

```sqf
[unit, data, varDone, stateIngnore, debug, sleep, skipTime] spawn BIS_fnc_unitPlaySimple
```

**Parameters:**

- `unit`: [Object](../topics/Object.md) - unit to play movement data on
- `data`: [Array](../topics/Array.md) - movement data to use
- `varDone`: [Array](../topics/Array.md) - (Optional, default `[]`) variable to set on specified Object once playback has finished in format:
  - 0: [Object](../topics/Object.md), [Group](../topics/Group.md) or [Namespace](../topics/Namespace.md) - target
  - 1: [String](../topics/String.md) - variable name
- `stateIgnore`: [Boolean](../topics/Boolean.md) - (Optional, default [false](../commands/false.md)) whether to ignore if the Unit is dead and/or cannot move
- `debug`: [Boolean](../topics/Boolean.md) - (Optional, default [false](../commands/false.md) whether to give debug information on played frames per second
- `sleep`: [Number](../topics/Number.md) - (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.
- `skipTime`: [Number](../topics/Number.md) - (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:** [Script Handle](../topics/Script_Handle.md) - script handle

## Examples

### Example 1

```sqf
private _capturedData = [[0, [8208.26, 1953.13, 296.04], 67]];
[BIS_Vehicle, _capturedData, [BIS_Object, "DoneRecording"], true, false, 0.2, 5] spawn BIS_fnc_unitPlaySimple;
```

## See also

[BIS_fnc_unitCaptureFiring](../functions/BIS_fnc_unitCaptureFiring.md) · [BIS_fnc_unitCaptureSimple](../functions/BIS_fnc_unitCaptureSimple.md) · [BIS_fnc_unitPlayFiring](../functions/BIS_fnc_unitPlayFiring.md) · [BIS_fnc_unitPlay](../functions/BIS_fnc_unitPlay.md) · [BIS_fnc_unitCapture](../functions/BIS_fnc_unitCapture.md)

<sub>Source: [BI Community Wiki — BIS fnc unitPlaySimple](https://community.bistudio.com/wiki/BIS_fnc_unitPlaySimple) (revision 349494).</sub>
