---
name: "BIS_fnc_destroyer01AnimateHangarDoors"
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_destroyer01AnimateHangarDoors
revid: 379553
updated: 2026-10-31T13:47:28Z
---

# BIS_fnc_destroyer01AnimateHangarDoors

*Function · Destroyer · Arma 3 v1.84*

## Description

Opens or closes the destroyer's hangar doors by animating the six animations `Door_Hangar_1_1_open` ... `Door_Hangar_1_3_open` and `Door_Hangar_2_1_open` ... `Door_Hangar_2_3_open` of the given ship part to the given phase.
Unless the animation is instant, it also spawns [BIS_fnc_destroyer01PlayHangarDoorSound](../functions/BIS_fnc_destroyer01PlayHangarDoorSound.md) at the part's `Door_Hangar_SoundPos` memory point.
The function is spawned by [BIS_fnc_destroyer01OperateHangarDoors](../functions/BIS_fnc_destroyer01OperateHangarDoors.md) (the hangar door user actions, which use the `Land_Destroyer_01_hull_04_F` part) and, according to its header, used by the destroyer's Eden attributes. It can also be used in scripts. It does nothing if the ship part is [objNull](../commands/objNull.md).

## Syntax

```sqf
[shipPart, phase, instant] call BIS_fnc_destroyer01AnimateHangarDoors
```

**Parameters:**

- `shipPart`: [Object](../topics/Object.md) - the ship part that has the hangar doors (`Land_Destroyer_01_hull_04_F`)
- `phase`: [Number](../topics/Number.md) - (Optional, default 0) animation phase of the doors: 1 open, 0 closed
- `instant`: [Boolean](../topics/Boolean.md) - (Optional, default [false](../commands/false.md)) [true](../commands/true.md) to set the doors to the phase instantly and without sound, [false](../commands/false.md) to animate them smoothly with sound

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

## Examples

### Example 1

```sqf
// open the hangar doors of the destroyer named myDestroyer (on the server, where the ship's parts are known)
private _hull = [myDestroyer, "Land_Destroyer_01_hull_04_F"] call BIS_fnc_destroyer01GetShipPart;
[_hull, 1, false] call BIS_fnc_destroyer01AnimateHangarDoors;
```

## See also

[BIS_fnc_destroyer01OperateHangarDoors](../functions/BIS_fnc_destroyer01OperateHangarDoors.md) · [BIS_fnc_destroyer01PlayHangarDoorSound](../functions/BIS_fnc_destroyer01PlayHangarDoorSound.md) · [BIS_fnc_destroyer01GetShipPart](../functions/BIS_fnc_destroyer01GetShipPart.md) · [animate](../commands/animate.md)

<sub>Source: [BI Community Wiki — BIS fnc destroyer01AnimateHangarDoors](https://community.bistudio.com/wiki/BIS_fnc_destroyer01AnimateHangarDoors) (revision 379553).</sub>
