{"name":"BIS_fnc_destroyer01AnimateHangarDoors","title":"BIS fnc destroyer01AnimateHangarDoors","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_destroyer01AnimateHangarDoors","revid":379553,"updated":"2026-10-31T13:47:28Z","groups":["Destroyer"],"status":"ok","games":{"arma3":"1.84"},"since":"arma3 1.84","arma3_since":"1.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.\nUnless the animation is instant, it also spawns BIS_fnc_destroyer01PlayHangarDoorSound at the part's `Door_Hangar_SoundPos` memory point.\nThe function is spawned by BIS_fnc_destroyer01OperateHangarDoors (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.","syntaxes":[{"syntax":"[shipPart, phase, instant] call BIS_fnc_destroyer01AnimateHangarDoors","params":[{"name":"shipPart","type":"Object","description":"the ship part that has the hangar doors (`Land_Destroyer_01_hull_04_F`)","type_expr":"Object"},{"name":"phase","type":"Number","optional":true,"default":"0","description":"animation phase of the doors: 1 open, 0 closed","type_expr":"Number","text":"phase: Number - (Optional, default 0) animation phase of the doors: 1 open, 0 closed"},{"name":"instant","type":"Boolean","optional":true,"default":"false","description":"true to set the doors to the phase instantly and without sound, false to animate them smoothly with sound","type_expr":"Boolean","text":"instant: Boolean - (Optional, default false) true to set the doors to the phase instantly and without sound, false to animate them smoothly with sound"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"code":["// open the hangar doors of the destroyer named myDestroyer (on the server, where the ship's parts are known)\nprivate _hull = [myDestroyer, \"Land_Destroyer_01_hull_04_F\"] call BIS_fnc_destroyer01GetShipPart;\n[_hull, 1, false] call BIS_fnc_destroyer01AnimateHangarDoors;"]}],"see_also":["BIS_fnc_destroyer01OperateHangarDoors","BIS_fnc_destroyer01PlayHangarDoorSound","BIS_fnc_destroyer01GetShipPart","animate"]}