From b34727d1a136885493e990a47fdd5370cc1afaa1 Mon Sep 17 00:00:00 2001 From: dayz10k Date: Tue, 26 Nov 2013 15:53:18 -0500 Subject: [PATCH] #796 error in BIS killed --- SQF/dayz_code/system/BIS_Effects/killed.sqf | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/SQF/dayz_code/system/BIS_Effects/killed.sqf b/SQF/dayz_code/system/BIS_Effects/killed.sqf index 48d502548..300ac0f0b 100644 --- a/SQF/dayz_code/system/BIS_Effects/killed.sqf +++ b/SQF/dayz_code/system/BIS_Effects/killed.sqf @@ -1,19 +1,19 @@ private ["_v","_int","_t","_b"]; _v=_this select 0; -if(_v iskindof "helicopter"||_v iskindof "plane")then{ - ["AirDestruction",_v]call BIS_Effects_globalEvent; +if (_v isKindOf "Helicopter"||_v isKindOf "Plane") then { + ["AirDestruction",_v] call BIS_Effects_globalEvent; }; -if(_v iskindof "tank")then{ +if (_v isKindOf "Tank") then { _int=(fuel _v)*(2+random 2); _t=time; - [_v,_int]spawn BIS_Effects_Secondaries; + [_v,_int] spawn BIS_Effects_Secondaries; }; -if(_v iskindof "car"||_v iskindof "ship")then{ +if (_v isKindOf "Car"||_v isKindOf "Ship") then { _int=(fuel _v)*(2+random 1); _t=time; - [_v,_int]spawn BIS_Effects_Secondaries; - if((random _int)>2.2)then{ - _b=createVehicle["SmallSecondary",(getPosATL _v),[],0,"CAN_COLLIDE"]; + [_v,_int] spawn BIS_Effects_Secondaries; + if ((random _int)>2.2) then { + _b = createVehicle ["SmallSecondary",(getPosATL _v),[],0,"CAN_COLLIDE"]; }; };