---
name: "BIS_fnc_sceneCheckWeapons"
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_sceneCheckWeapons
revid: 347989
updated: 2023-11-08T10:17:48Z
---

# BIS_fnc_sceneCheckWeapons

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

## Description

Checks if participants have not missing weapon or have not it selected before scene
Function works as a toggle:
- 1st run of script: running in SETUP mode - sets correct weapons for scene
- 2nd run of script: running in RESTORE mode - restore origin weapons(delete weapons after scene if character hadn't any)

## Syntax

```sqf
[participants] call BIS_fnc_sceneCheckWeapons
```

**Parameters:**

- `participants`: [Array](../topics/Array.md) of [Array](../topics/Array.md)s - (Optional, default `[[BIS_Cooper, "primary"],[BIS_Ohara, "primary"],[BIS_Rodriguez, "primary"],[BIS_Sykes, "primary"],[BIS_Miles, "primary"]]`) an array of arrays in format:

  0: [Object](../topics/Object.md) - Unit to check

  1: [String](../topics/String.md) - Weapon type (primary, pistol)

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

## Examples

### Example 1

```sqf
[
    [BIS_Cooper, "primary"],
    [BIS_Ohara, "primary"],
    [BIS_Rodriguez, "primary"],
    [BIS_Sykes, "primary"],
    [BIS_Miles, "primary"]
] call BIS_fnc_sceneCheckWeapons;
```

## See also

[BIS_fnc_sceneSetObjects](../functions/BIS_fnc_sceneSetObjects.md) · [BIS_fnc_objectsGrabber](../functions/BIS_fnc_objectsGrabber.md) · [BIS_fnc_objectsMapper](../functions/BIS_fnc_objectsMapper.md)

<sub>Source: [BI Community Wiki — BIS fnc sceneCheckWeapons](https://community.bistudio.com/wiki/BIS_fnc_sceneCheckWeapons) (revision 347989).</sub>
