2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-08-18 21:18:32 +00:00
|
|
|
/*
|
|
|
|
* Author: GitHawk
|
2015-08-20 20:10:26 +00:00
|
|
|
* Turn on a fuel nozzle.
|
2015-08-18 21:18:32 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
2015-08-20 20:10:26 +00:00
|
|
|
* 0: Unit <OBJECT>
|
|
|
|
* 1: Nozzle <OBJECT>
|
2023-02-17 02:06:11 +00:00
|
|
|
* 2: Refuel container <BOOL> (default: false)
|
2015-08-18 21:18:32 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
2015-08-21 20:43:45 +00:00
|
|
|
* [player, nozzle] call ace_refuel_fnc_turnOn
|
2015-08-18 21:18:32 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2023-02-17 02:06:11 +00:00
|
|
|
params [["_unit", objNull, [objNull]], ["_nozzle", objNull, [objNull]], ["_refuelContainer", false, [false]]];
|
2015-08-18 21:18:32 +00:00
|
|
|
|
2017-09-21 14:24:58 +00:00
|
|
|
_nozzle setVariable [QGVAR(lastTickMissionTime), CBA_missionTime];
|
2023-02-17 02:06:11 +00:00
|
|
|
_nozzle setVariable [QGVAR(refuelContainer), _refuelContainer];
|
2017-09-21 14:24:58 +00:00
|
|
|
_nozzle setVariable [QGVAR(isRefueling), true, true];
|
|
|
|
[LSTRING(Hint_Started), 1.5, _unit] call EFUNC(common,displayTextStructured);
|
2019-10-13 18:08:35 +00:00
|
|
|
[QGVAR(started), [_nozzle getVariable QGVAR(source), _nozzle getVariable QGVAR(sink)]] call CBA_fnc_localEvent;
|