---
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: 286010
updated: 2021-06-20T17:24:13Z
---

# BIS_fnc_destroyer01AnimateHangarDoors

*Function · Destroyer · Arma 3 v1.84*

## Description

- This is a sub function designed to handle animations of ship hangar doors. Used in Eden attributes and objects user actions.

## Syntax

```sqf
[] call BIS_fnc_destroyer01AnimateHangarDoors
```

**Parameters:**

- `mode` — 0: (Scalar)
- `param0` — 0: ship-part object
  and
- `param1` — 1: animation state of doors
- `param2` — 2: animation speed (instant = true/smooth=false);

**Returns:** nothing
Ship's hangar door animation is played with sounds added.

## Examples

### Example 1

```sqf
[_shipPart, _value, false] spawn BIS_fnc_destroyer01AnimateHangarDoors;
```

## 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 handle animations of ship hangar doors. Used in Eden attributes and objects user actions.

Execution:
- Call from script.

Example:
    [_shipPart, _value, false] spawn BIS_fnc_destroyer01AnimateHangarDoors;

Required:
    Object (ship) must have all animations correctly defined and user actions configured.

Parameter(s):
    _this select 0: mode (Scalar)
    0: ship-part object
    and
    1: animation state of doors
    2: animation speed (instant = true/smooth=false);

Returns: nothing
Result: Ship's hangar door animation is played with sounds added.
*/
```

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