ACE3/addons/fcs/functions/fnc_reset.sqf
2015-02-03 23:03:43 +01:00

25 lines
486 B
Plaintext

/*
* Author: KoffeinFlummi
*
* Resets the FCS to default.
*
* Arguments:
* 0: Vehicle
*
* Return Value:
* none
*/
#include "script_component.hpp"
private "_vehicle";
_vehicle = _this select 0;
_vehicle setVariable [QGVAR(Distance), 0, true];
_vehicle setVariable [QGVAR(Magazines), [], true];
_vehicle setVariable [QGVAR(Elevation), 0, true];
_vehicle setVariable [QGVAR(Azimuth), 0, true];
[localize "STR_ACE_FCS_HasBeenReset"] call EFUNC(common,displayTextStructured);