ACE3/addons/fcs/functions/fnc_reset.sqf

24 lines
702 B
Plaintext
Raw Normal View History

/*
* Author: KoffeinFlummi
* Resets the FCS to default.
*
* Arguments:
2015-12-10 15:00:14 +00:00
* 0: Vehicle <OBJECT>
* 1: Turret <ARRAY>
*
* Return Value:
* none
2015-12-10 15:00:14 +00:00
*
* Public: No
*/
#include "script_component.hpp"
2015-12-10 15:00:14 +00:00
params ["_vehicle", "_turret"];
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-05-28 19:59:04 +00:00
[localize LSTRING(HasBeenReset)] call EFUNC(common,displayTextStructured);