ACE3/addons/fcs/functions/fnc_reset.sqf
2015-01-13 22:51:02 +01:00

25 lines
488 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);