mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
make getGunner work in person turret turret units (commander FFV) and for foot soldiers
This commit is contained in:
parent
d8e0c54406
commit
f2d802eb90
@ -16,6 +16,8 @@ private ["_vehicle", "_weapon"];
|
||||
_vehicle = _this select 0;
|
||||
_weapon = _this select 1;
|
||||
|
||||
if (gunner _vehicle == _vehicle && {_weapon in weapons _vehicle}) exitWith {gunner _vehicle};
|
||||
|
||||
private "_gunner";
|
||||
_gunner = objNull;
|
||||
|
||||
@ -23,6 +25,6 @@ _gunner = objNull;
|
||||
if (_weapon in (_vehicle weaponsTurret _x)) exitWith {
|
||||
_gunner = _vehicle turretUnit _x;
|
||||
};
|
||||
} forEach allTurrets _vehicle;
|
||||
} forEach allTurrets [_vehicle, true];
|
||||
|
||||
_gunner
|
||||
|
Loading…
Reference in New Issue
Block a user