ACE3/addons/overheating/functions/fnc_checkSpareBarrelsTemperatures.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

39 lines
876 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: esteldunedain
* Make the player check the temperature of his spare barrels
*
* Arguments:
* 0: Player <OBJECT>
*
* Return Value:
* None
*
* Example:
* [bob] call ace_overheating_fnc_checkSpareBarrelsTemperatures
*
*
* Public: No
*/
params ["_player"];
// Make the unit go kneeling
[_player] call EFUNC(common,goKneeling);
// Spawn a progress bar
[
5.0,
[_player],
{
params ["_args", "_elapsedTime", "_totalTime", "_errorCode"];
_args params ["_player"];
// Time has enlapsed, ask the server to send the hint
[QGVAR(sendSpareBarrelTemperatureHint), [_player, _player]] call CBA_fnc_serverEvent;
},
{},
(localize LSTRING(CheckingSpareBarrelsTemperatures)),
{true},
["isNotInside", "isNotSitting", "isNotSwimming"]
] call EFUNC(common,progressBar);