Arma 3 Scripting

BIS_fnc_destroyer01AnimateHangarDoors

  • Arma 3 v1.84

Function · Markdown · JSON · original wiki page

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:

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