mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fcs in MP
This commit is contained in:
parent
d0b0a0e066
commit
d4163223a9
@ -155,9 +155,9 @@ _FCSElevation = [];
|
||||
};
|
||||
} forEach _magazines;
|
||||
|
||||
_vehicle setVariable [format ["%1_%2", QGVAR(Distance), _turret], _distance, true];
|
||||
_vehicle setVariable [format ["%1_%2", QGVAR(Magazines), _turret], _FCSMagazines, true];
|
||||
_vehicle setVariable [format ["%1_%2", QGVAR(Elevation), _turret], _FCSElevation, true];
|
||||
_vehicle setVariable [format ["%1_%2", QGVAR(Azimuth), _turret], _FCSAzimuth, true];
|
||||
[_vehicle, format ["%1_%2", QGVAR(Distance), _turret], _distance] call EFUNC(common,setVariablePublic);
|
||||
[_vehicle, format ["%1_%2", QGVAR(Magazines), _turret], _FCSMagazines] call EFUNC(common,setVariablePublic);
|
||||
[_vehicle, format ["%1_%2", QGVAR(Elevation), _turret], _FCSElevation] call EFUNC(common,setVariablePublic);
|
||||
[_vehicle, format ["%1_%2", QGVAR(Azimuth), _turret], _FCSAzimuth] call EFUNC(common,setVariablePublic);
|
||||
|
||||
[format ["%1: %2", localize "STR_ACE_FCS_ZeroedTo", _distance]] call EFUNC(common,displayTextStructured);
|
||||
|
@ -16,9 +16,9 @@ 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];
|
||||
[_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);
|
||||
|
||||
[localize "STR_ACE_FCS_HasBeenReset"] call EFUNC(common,displayTextStructured);
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Author: KoffeinFlummi
|
||||
* Author: KoffeinFlummi, commy2
|
||||
*
|
||||
* Checks if a vehicle is equipped with an FCS and if so, adds the fired event handler
|
||||
* Checks if a vehicle is equipped with an FCS and if so, adds the fired event handler. Execute on server.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Vehicle
|
||||
|
Loading…
Reference in New Issue
Block a user