mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
fixed #1166
This commit is contained in:
@@ -13,6 +13,7 @@ _obj = _this;
|
||||
_packedClass = getText (configFile >> "CfgVehicles" >> (typeOf _obj) >> "packedClass");
|
||||
_text = getText (configFile >> "CfgVehicles" >> (typeOf _obj) >> "displayName");
|
||||
|
||||
|
||||
// Silently exit if object no longer exists
|
||||
if(isNull _obj or !(alive _obj)) exitWith { DZE_ActionInProgress = false; };
|
||||
|
||||
@@ -81,6 +82,11 @@ if(!isNull _obj and alive _obj) then {
|
||||
// Empty weapon holder
|
||||
_holder = _bag;
|
||||
|
||||
// add seed item
|
||||
_itemOut = getText(configFile >> "CfgVehicles" >> _packedClass >> "seedItem");
|
||||
_countOut = 1;
|
||||
_holder addMagazineCargoGlobal[_itemOut, _countOut];
|
||||
|
||||
//Add weapons
|
||||
_objWpnTypes = _weapons select 0;
|
||||
_objWpnQty = _weapons select 1;
|
||||
|
||||
Reference in New Issue
Block a user