mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Replace driver by effectivCommander on EFUNC(common,getGunner) and EFUNC(common,firedEH)
This commit is contained in:
parent
b6058242c8
commit
e2ed38609d
@ -51,7 +51,7 @@ if (_unit isKindOf "CAManBase") then {
|
|||||||
} count allTurrets [_unit, true];
|
} count allTurrets [_unit, true];
|
||||||
// Ensure that at least the pilot is returned if there is no gunner
|
// Ensure that at least the pilot is returned if there is no gunner
|
||||||
if (isManualFire _unit && {isNull _gunner}) then {
|
if (isManualFire _unit && {isNull _gunner}) then {
|
||||||
_gunner = driver _unit;
|
_gunner = effectiveCommander _unit;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (_gunner == ACE_player) then {
|
if (_gunner == ACE_player) then {
|
||||||
|
@ -30,7 +30,7 @@ private _gunner = objNull;
|
|||||||
|
|
||||||
// ensure that at least the pilot is returned if there is no gunner
|
// ensure that at least the pilot is returned if there is no gunner
|
||||||
if (isManualFire _vehicle && {isNull _gunner}) then {
|
if (isManualFire _vehicle && {isNull _gunner}) then {
|
||||||
_gunner = driver _vehicle;
|
_gunner = effectiveCommander _vehicle;
|
||||||
};
|
};
|
||||||
|
|
||||||
_gunner
|
_gunner
|
||||||
|
Loading…
Reference in New Issue
Block a user