Arma 3 Scripting

BIS_fnc_destroyer01AnimateHangarDoors

  • Arma 3 v1.84

Function · Markdown · JSON · original wiki page

Description

Syntax

[] call BIS_fnc_destroyer01AnimateHangarDoors

Parameters:

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

Examples

Example 1

[_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.

/*
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.
*/