---
name: "BIS_fnc_sceneSetBehaviour"
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_sceneSetBehaviour
revid: 349150
updated: 2023-11-08T14:49:48Z
---

# BIS_fnc_sceneSetBehaviour

*Function · Scenes · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Enables / disables a specific set of AI units, usable for cutscenes.

## Syntax

```sqf
param call BIS_fnc_sceneSetBehaviour
```

**Parameters:**

- [String](../topics/String.md) - string to toggle AI ("enableAI","disableAI")
- [Array](../topics/Array.md) - AI units that should be affected by function.

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
["disableAI", [unit1, player, unit2, unit3]] call BIS_fnc_sceneSetBehaviour;
```

## See also

[disableAI](../commands/disableAI.md) · [enableAI](../commands/enableAI.md) · [enableSimulation](../commands/enableSimulation.md)

<sub>Source: [BI Community Wiki — BIS fnc sceneSetBehaviour](https://community.bistudio.com/wiki/BIS_fnc_sceneSetBehaviour) (revision 349150).</sub>
