Rearm driver weapons (pook rearming)

This commit is contained in:
icomrade
2016-09-11 16:38:26 -04:00
parent 48334e76d4
commit 203975def7
2 changed files with 6 additions and 2 deletions

View File

@@ -55,8 +55,11 @@ if (_inVehicle) then {
r_action2 = true;
};
};
if (count _assignedRole > 1) then {
_turret = _assignedRole select 1;
if ((count _assignedRole) > 1 || ((_assignedRole select 0) == "driver")) then {
_turret = [-1];
if ((count _assignedRole) > 1) then {
_turret = _assignedRole select 1;
};
_weapons = _vehicle weaponsTurret _turret;
{
_weaponName = getText (configFile >> "cfgWeapons" >> _x >> "displayName");