Arma 3 Scripting

BIS_fnc_destroyer01PlayHangarDoorSound

  • Arma 3 v1.84

Function · Markdown · JSON · original wiki page

Description

Syntax

[] call BIS_fnc_destroyer01PlayHangarDoorSound

Parameters:

Returns: nothing Ship's hangar door animation gets a sound source added.

Examples

Example 1

[_shipPart, _soundPos, _animationState] spawn BIS_fnc_destroyer01PlayHangarDoorSound;

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 add sounds required for ship hangar door animation.

Execution:
- Call from main script that handles the hangar door animation.

    Example:
    [_shipPart, _soundPos, _animationState] spawn BIS_fnc_destroyer01PlayHangarDoorSound;

Parameter(s):
    _this select 0: mode (Scalar)
    0: ship-part object
    and
    1: position in word coordinates where the sound should be played (modelToWorldWorld)
    2: animation state of hangar doors

Returns: nothing
Result: Ship's hangar door animation gets a sound source added.
*/