mirror of
https://github.com/acemod/ACE3.git
synced 2025-07-25 04:42:48 +00:00
* Docs - Fixed Typo1e404cf85b/addons/repair/functions/fnc_isEngineer.sqf
This function is public api, this here should be too * Revert "Docs - Fixed Typo" This reverts commited96e360d0
. * add _nozzle to Events * Update events-framework.md * add soundeffects to refueling * remove tabs * finetune range * adapt license * revert 1. to 0. * Update addons/refuel/CfgSounds.hpp Co-authored-by: Mike-MF <TyroneMF@hotmail.com> * increased range when people walk away and walk back, the sound remains active instead of being dropped due to being out of range. * add pitch variation * Update AUTHORS.txt * fnc_refuel.sqf aktualisieren Co-authored-by: PabstMirror <pabstmirror@gmail.com> * exit when cba isnt updated yet * comment: TODO * remove exit with * Bump req cba --------- Co-authored-by: PabstMirror <pabstmirror@gmail.com> Co-authored-by: Mike-MF <TyroneMF@hotmail.com> Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
26 lines
710 B
Plaintext
26 lines
710 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: GitHawk
|
|
* Turn off a fuel nozzle.
|
|
*
|
|
* Arguments:
|
|
* 0: Unit <OBJECT>
|
|
* 1: Nozzle <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [nozzle] call ace_refuel_fnc_turnOff
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params [["_unit", objNull, [objNull]], ["_nozzle", objNull, [objNull]]];
|
|
|
|
_nozzle setVariable [QGVAR(lastTickMissionTime), nil];
|
|
_nozzle setVariable [QGVAR(isRefueling), false, true];
|
|
[LSTRING(Hint_Stopped), 1.5, _unit] call EFUNC(common,displayTextStructured);
|
|
[QGVAR(stopped), [_nozzle getVariable QGVAR(source), _nozzle getVariable QGVAR(sink), _nozzle]] call CBA_fnc_localEvent;
|
|
[_nozzle, QGVAR(nozzle_stop), nil, true, true, true] call CBA_fnc_globalSay3D;
|