Forgot player check

This commit is contained in:
AirwavesMan
2021-03-12 11:29:24 +01:00
parent 55d1a30491
commit 11c4356875

View File

@@ -2,7 +2,7 @@ local _vehicle = _this select 0;
local _unit = _this select 2; local _unit = _this select 2;
local _driver = driver _vehicle; local _driver = driver _vehicle;
if (!(isNull _driver) && {_driver != _unit}) exitwith {}; if ((_unit != player) || {!(isNull _driver) && {_driver != _unit}}) exitwith {};
while {_vehicle isKindOf "Submarine_DZE_base"} do { while {_vehicle isKindOf "Submarine_DZE_base"} do {
local _pos = getposATL _vehicle; local _pos = getposATL _vehicle;