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):
- a slam sound (
A3\sounds_f\structures\doors\servoramp\servorampslam.wss) - one second later, the servo sound (
A3\sounds_f\structures\doors\servoramp\servorampsound_2.wss) - the slam sound again once the part's
Door_Hangar_1_1_openanimation 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:
shipPart: Object - the ship part whose hangar doors move; it is the sound source and its animation phase is watchedposition: Array format PositionASL - (Optional, default [0,0,0]) where the sounds are playedphase: Number - (Optional, default 0) target phase of the doors; the last sound plays whenDoor_Hangar_1_1_openreaches it
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