mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-04-18 10:16:39 +03:00
Update fnc_plyrHit.sqf
Fixed undefined variable "_weapon" error on 1.63.112555+
This commit is contained in:
@@ -9,6 +9,8 @@ if ((owner _victim) == (owner _attacker)) exitWith {
|
||||
};
|
||||
|
||||
_weapon = weaponState _attacker;
|
||||
if (!isNil "_weapon") then {
|
||||
if (count _weapon != 0) then {
|
||||
if (_weapon select 0 == "Throw") then
|
||||
{
|
||||
_weapon = _weapon select 3;
|
||||
@@ -17,6 +19,8 @@ else
|
||||
{
|
||||
_weapon = _weapon select 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
_vehicle = typeOf (vehicle _attacker);
|
||||
if ((getText (configFile >> "CfgVehicles" >> _vehicle >> "vehicleClass")) in ["CarW","Car","CarD","Armored","Ship","Support","Air","ArmouredW","ArmouredD","SupportWoodland_ACR"]) then {
|
||||
|
||||
Reference in New Issue
Block a user