diff --git a/SQF/dayz_code/system/BIS_Effects/fired.sqf b/SQF/dayz_code/system/BIS_Effects/fired.sqf index 4266c6441..3224775f6 100644 --- a/SQF/dayz_code/system/BIS_Effects/fired.sqf +++ b/SQF/dayz_code/system/BIS_Effects/fired.sqf @@ -2,5 +2,7 @@ private ["_amm"]; _amm=_this select 4; _this call (call compile GetText (configFile >> "CfgAmmo" >> _amm >> "muzzleEffect")); //Handle combat in vehicle -player setVariable ["inCombat", 1, true]; -player setVariable["combattimeout", diag_tickTime + 30, false]; \ No newline at end of file +if (player in (crew (_this select 0))) then { + player setVariable ["inCombat", 1, true]; + player setVariable["combattimeout", diag_tickTime + 30, false]; +}; \ No newline at end of file