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 at the part's Door_Hangar_SoundPos memory point.
The 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.
Syntax
[shipPart, phase, instant] call BIS_fnc_destroyer01AnimateHangarDoors
Parameters:
shipPart: Object - the ship part that has the hangar doors (Land_Destroyer_01_hull_04_F)phase: Number - (Optional, default 0) animation phase of the doors: 1 open, 0 closedinstant: Boolean - (Optional, default false) true to set the doors to the phase instantly and without sound, false to animate them smoothly with sound
Returns: Nothing
Examples
Example 1
// 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 · BIS_fnc_destroyer01PlayHangarDoorSound · BIS_fnc_destroyer01GetShipPart · animate