Arma 3 Scripting

BIS_fnc_destroyer01PlayHangarDoorSound

  • Global effect
  • Runs with spawn
  • Arma 3 v1.84

Function · Markdown · JSON · original wiki page

Description

Plays the sounds of the destroyer's moving hangar doors with playSound3D (volume 5, audible up to 15 m):

  1. a slam sound (A3\sounds_f\structures\doors\servoramp\servorampslam.wss)
  2. one second later, the servo sound (A3\sounds_f\structures\doors\servoramp\servorampsound_2.wss)
  3. the slam sound again once the part's Door_Hangar_1_1_open animation phase equals the target phase.

The function is spawned by BIS_fnc_destroyer01AnimateHangarDoors when the doors are animated smoothly; it is meant for internal use.

Syntax

[shipPart, position, phase] spawn BIS_fnc_destroyer01PlayHangarDoorSound

Parameters:

Returns: Nothing

Examples

Example 1

How BIS_fnc_destroyer01AnimateHangarDoors uses it:

private _soundPos = _shipPart modelToWorldWorld (_shipPart selectionPosition "Door_Hangar_SoundPos");
[_shipPart, _soundPos, _animationState] spawn BIS_fnc_destroyer01PlayHangarDoorSound;

See also

BIS_fnc_destroyer01AnimateHangarDoors · BIS_fnc_destroyer01OperateHangarDoors · playSound3D