2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2016-03-01 21:16:14 +00:00
|
|
|
/*
|
|
|
|
* Author: esteldunedain
|
|
|
|
* Make the player check the temperature of his spare barrels
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Player <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
2020-04-25 06:41:45 +00:00
|
|
|
* [bob] call ace_overheating_fnc_checkSpareBarrelsTemperatures
|
2017-06-08 13:31:51 +00:00
|
|
|
*
|
2016-03-01 21:16:14 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_player"];
|
|
|
|
|
|
|
|
// Make the unit go kneeling
|
2016-03-01 22:25:45 +00:00
|
|
|
[_player] call EFUNC(common,goKneeling);
|
2016-03-01 21:16:14 +00:00
|
|
|
|
|
|
|
// Spawn a progress bar
|
|
|
|
[
|
|
|
|
5.0,
|
|
|
|
[_player],
|
|
|
|
{
|
2016-03-01 22:25:45 +00:00
|
|
|
params ["_args", "_elapsedTime", "_totalTime", "_errorCode"];
|
|
|
|
_args params ["_player"];
|
2016-03-01 21:16:14 +00:00
|
|
|
// Time has enlapsed, ask the server to send the hint
|
2016-06-24 13:45:13 +00:00
|
|
|
[QGVAR(sendSpareBarrelTemperatureHint), [_player, _player]] call CBA_fnc_serverEvent;
|
2016-03-01 21:16:14 +00:00
|
|
|
},
|
|
|
|
{},
|
|
|
|
(localize LSTRING(CheckingSpareBarrelsTemperatures)),
|
|
|
|
{true},
|
2017-08-22 18:30:56 +00:00
|
|
|
["isNotInside", "isNotSitting", "isNotSwimming"]
|
2016-03-01 21:16:14 +00:00
|
|
|
] call EFUNC(common,progressBar);
|