From 0dcc75e5ec97273a88ee16eab4131a19a72b41f7 Mon Sep 17 00:00:00 2001 From: icomrade Date: Sat, 10 Sep 2016 15:53:16 -0400 Subject: [PATCH] Limit to crew --- SQF/dayz_code/system/BIS_Effects/fired.sqf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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