ACE3/addons/volume/functions/fnc_restoreVolume.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

28 lines
556 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: Kingsley
* Restores the game and music volume to what it was when the mission first started,
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* [] call ace_volume_fnc_restoreVolume
*
* Public: No
*/
EGVAR(hearing,disableVolumeUpdate) = false;
XGVAR(fadeDelay) fadeSound GVAR(initialGameVolume);
XGVAR(fadeDelay) fadeMusic GVAR(initialMusicVolume);
GVAR(isLowered) = false;
if (XGVAR(showNotification)) then {
[LLSTRING(Restored)] call EFUNC(common,displayTextStructured);
};