ACE3/addons/fcs/functions/fnc_reset.sqf

27 lines
762 B
Plaintext
Raw Normal View History

#include "..\script_component.hpp"
/*
* 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
*
* Example:
* [car, [turret]] call ace_fcs_fnc_reset
2015-12-10 15:00:14 +00:00
*
* Public: No
*/
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);