fcs reset was still broken

This commit is contained in:
commy2 2015-02-14 08:09:52 +01:00
parent b2945c34d7
commit 19cf05314e
2 changed files with 7 additions and 6 deletions

View File

@ -6,7 +6,7 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {ace_common, ace_interaction};
author[] = {"KoffeinFlummi","BadGuy (simon84)"};
author[] = {"KoffeinFlummi","BadGuy (simon84)","commy2"};
authorUrl = "https://github.com/KoffeinFlummi/";
VERSION_CONFIG;
};

View File

@ -12,13 +12,14 @@
#include "script_component.hpp"
private "_vehicle";
private ["_vehicle", "_turret"];
_vehicle = _this select 0;
_turret = _this select 1;
[_vehicle, QGVAR(Distance), 0] call EFUNC(common,setVariablePublic);
[_vehicle, QGVAR(Magazines), []] call EFUNC(common,setVariablePublic);
[_vehicle, QGVAR(Elevation), 0] call EFUNC(common,setVariablePublic);
[_vehicle, QGVAR(Azimuth), 0] call EFUNC(common,setVariablePublic);
[_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);
[localize "STR_ACE_FCS_HasBeenReset"] call EFUNC(common,displayTextStructured);