2015-01-12 10:02:44 +00:00
|
|
|
/*
|
|
|
|
* Author: KoffeinFlummi
|
|
|
|
*
|
|
|
|
* Resets the FCS to default.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Vehicle
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* none
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-02-14 07:09:52 +00:00
|
|
|
private ["_vehicle", "_turret"];
|
2015-01-12 10:02:44 +00:00
|
|
|
|
|
|
|
_vehicle = _this select 0;
|
2015-02-14 07:09:52 +00:00
|
|
|
_turret = _this select 1;
|
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-01-13 21:51:02 +00:00
|
|
|
[localize "STR_ACE_FCS_HasBeenReset"] call EFUNC(common,displayTextStructured);
|