ACE3/addons/fcs/functions/fnc_reset.sqf
Phyma ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00

27 lines
759 B
Plaintext

/*
* 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
*/
#include "script_component.hpp"
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);