---
name: "BIS_fnc_destroyer01PlayHangarDoorSound"
type: function
status: ok
groups: ["Destroyer"]
arma3_since: "1.84"
locality: {"argument": null, "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_destroyer01PlayHangarDoorSound
revid: 379558
updated: 2026-10-31T13:49:42Z
---

# BIS_fnc_destroyer01PlayHangarDoorSound

*Function · Destroyer · Arma 3 v1.84*

Locality: effect **global** · executed with **spawn**

## Description

Plays the sounds of the destroyer's moving hangar doors with [playSound3D](../commands/playSound3D.md) (volume 5, audible up to 15 m):

1. a slam sound (`A3\sounds_f\structures\doors\servoramp\servorampslam.wss`)
1. one second later, the servo sound (`A3\sounds_f\structures\doors\servoramp\servorampsound_2.wss`)
1. the slam sound again once the part's `Door_Hangar_1_1_open` animation phase equals the target phase.

The function is spawned by [BIS_fnc_destroyer01AnimateHangarDoors](../functions/BIS_fnc_destroyer01AnimateHangarDoors.md) when the doors are animated smoothly; it is meant for internal use.

## Syntax

```sqf
[shipPart, position, phase] spawn BIS_fnc_destroyer01PlayHangarDoorSound
```

**Parameters:**

- `shipPart`: [Object](../topics/Object.md) - the ship part whose hangar doors move; it is the sound source and its animation phase is watched
- `position`: [Array](../topics/Array.md) format [PositionASL](../topics/Position.md#positionasl) - (Optional, default [0,0,0]) where the sounds are played
- `phase`: [Number](../topics/Number.md) - (Optional, default 0) target phase of the doors; the last sound plays when `Door_Hangar_1_1_open` reaches it

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

## Examples

### Example 1

How [BIS_fnc_destroyer01AnimateHangarDoors](../functions/BIS_fnc_destroyer01AnimateHangarDoors.md) uses it:

```sqf
private _soundPos = _shipPart modelToWorldWorld (_shipPart selectionPosition "Door_Hangar_SoundPos");
[_shipPart, _soundPos, _animationState] spawn BIS_fnc_destroyer01PlayHangarDoorSound;
```

## See also

[BIS_fnc_destroyer01AnimateHangarDoors](../functions/BIS_fnc_destroyer01AnimateHangarDoors.md) · [BIS_fnc_destroyer01OperateHangarDoors](../functions/BIS_fnc_destroyer01OperateHangarDoors.md) · [playSound3D](../commands/playSound3D.md)

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