---
name: "BIS_fnc_doorClose"
type: function
status: ok
groups: ["Scripts"]
arma3_since: "1.00"
locality: {"argument": "global", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_doorClose
revid: 364843
updated: 2024-06-17T11:13:02Z
---

# BIS_fnc_doorClose

*Function · Scripts · Arma 3 v1.00*

Locality: arguments **global** · effect **global**

## Description

Close a door with an animated doorhandle.

## Syntax

```sqf
[building, doorAnimation, handleDownAnimation, doorHandleUpAnimation, animationPhase] call BIS_fnc_doorClose
```

**Parameters:**

- `building`: [Object](../topics/Object.md) - (Optional, default [objNull](../commands/objNull.md)) building
- `doorAnimation`: [String](../topics/String.md) - (Optional, default "") name of the door animation
- `handleDownAnimation`: [String](../topics/String.md) - (Optional, default "") animation source of handle down
- `doorHandleUpAnimation`: [String](../topics/String.md) - (Optional, default "") animation source of handle up
- `animationPhase`: [Number](../topics/Number.md) - (Optional, default 0) value from 0-1

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

## Examples

### Example 1

```sqf
[building, "doorAnimation", "animationUp", "animationDown", 1] call BIS_fnc_doorClose;
```

## See also

[animate](../commands/animate.md) · [animateSource](../commands/animateSource.md) · [BIS_fnc_door](../functions/BIS_fnc_door.md)

<sub>Source: [BI Community Wiki — BIS fnc doorClose](https://community.bistudio.com/wiki/BIS_fnc_doorClose) (revision 364843).</sub>
