2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-12 10:02:44 +00:00
|
|
|
/*
|
|
|
|
* Author: KoffeinFlummi
|
|
|
|
* Resets the FCS to default.
|
|
|
|
*
|
|
|
|
* Arguments:
|
2015-12-10 15:00:14 +00:00
|
|
|
* 0: Vehicle <OBJECT>
|
|
|
|
* 1: Turret <ARRAY>
|
2015-01-12 10:02:44 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [car, [turret]] call ace_fcs_fnc_reset
|
2015-12-10 15:00:14 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
2015-01-12 10:02:44 +00:00
|
|
|
*/
|
|
|
|
|
2015-12-10 15:00:14 +00:00
|
|
|
params ["_vehicle", "_turret"];
|
2015-01-12 10:02:44 +00:00
|
|
|
|
2015-02-14 07:09:52 +00:00
|
|
|
[_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);
|
2015-01-12 10:02:44 +00:00
|
|
|
|
2015-05-28 19:59:04 +00:00
|
|
|
[localize LSTRING(HasBeenReset)] call EFUNC(common,displayTextStructured);
|