ACE3/addons/fcs/functions/fnc_reset.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

27 lines
762 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: KoffeinFlummi
* Resets the FCS to default.
*
* Arguments:
* 0: Vehicle <OBJECT>
* 1: Turret <ARRAY>
*
* Return Value:
* None
*
* Example:
* [car, [turret]] call ace_fcs_fnc_reset
*
* Public: No
*/
params ["_vehicle", "_turret"];
[_vehicle, format ["%1_%2", QGVAR(Distance), _turret], 0] call EFUNC(common,setVariablePublic);
[_vehicle, format ["%1_%2", QGVAR(Magazines), _turret], []] call EFUNC(common,setVariablePublic);
[_vehicle, format ["%1_%2", QGVAR(Elevation), _turret], 0] call EFUNC(common,setVariablePublic);
[_vehicle, format ["%1_%2", QGVAR(Azimuth), _turret], 0] call EFUNC(common,setVariablePublic);
[localize LSTRING(HasBeenReset)] call EFUNC(common,displayTextStructured);