---
name: "BIS_fnc_destroyer01PlayHangarDoorSound"
type: function
status: ok
groups: ["Destroyer"]
arma3_since: "1.84"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_destroyer01PlayHangarDoorSound
revid: 286099
updated: 2021-06-20T17:25:44Z
---

# BIS_fnc_destroyer01PlayHangarDoorSound

*Function · Destroyer · Arma 3 v1.84*

## Description

- This is a sub function designed to add sounds required for ship hangar door animation.

## Syntax

```sqf
[] call BIS_fnc_destroyer01PlayHangarDoorSound
```

**Parameters:**

- `mode` — 0: (Scalar)
- `param0` — 0: ship-part object
  and
- `param1` — 1: position in word coordinates where the sound should be played (modelToWorldWorld)
- `param2` — 2: animation state of hangar doors

**Returns:** nothing
Ship's hangar door animation gets a sound source added.

## Examples

### Example 1

```sqf
[_shipPart, _soundPos, _animationState] spawn BIS_fnc_destroyer01PlayHangarDoorSound;
```

## Function header

The comment at the top of the function's file in the game; this page's description, params, returns, examples come from it.

```sqf
/*
Author: Bravo Zero One development
- John_Spartan

Description:
- This is a sub function designed to add sounds required for ship hangar door animation.

Execution:
- Call from main script that handles the hangar door animation.

    Example:
    [_shipPart, _soundPos, _animationState] spawn BIS_fnc_destroyer01PlayHangarDoorSound;

Parameter(s):
    _this select 0: mode (Scalar)
    0: ship-part object
    and
    1: position in word coordinates where the sound should be played (modelToWorldWorld)
    2: animation state of hangar doors

Returns: nothing
Result: Ship's hangar door animation gets a sound source added.
*/
```

<sub>Source: [BI Community Wiki — BIS fnc destroyer01PlayHangarDoorSound](https://community.bistudio.com/wiki/BIS_fnc_destroyer01PlayHangarDoorSound) (revision 286099).</sub>
