add tent
You must be registered to see links
You must be registered to see links
EDIT files DayZServer\MPMissions\dayz_Auto.ChernarusPlus\init.sqf
after rows
call init_spawnZombies;
sleep 1;
call init_spawnWildAnimals;
paste code =
//--------------------- палатка
_cX = 10291;
_cY = 14149;
_arrayLoot = ["Ssh68Helmet","EN5C_M65Jacket_Khaki","Medical_BandageDressing","Medical_BandageDressing","Medical_BandageDressing","JungleBoots_Beige","WorkingGloves_Beige","EN5C_TTSKOPants","FirefighterAxe","Compass","EN5C_SmershVestBackpack","M4A1","EN5C_ACOGOptic","M_STANAG_30Rnd_Coupled","M_STANAG_30Rnd_Coupled","M_STANAG_30Rnd_Coupled","M_STANAG_30Rnd_Coupled","M_STANAG_30Rnd_Coupled","AugSteyr","VSS","EN5C_MountainBag_Blue","Medical_Morphine","Medical_Morphine","M_Glock_15Rnd","M_Glock_15Rnd","M_Glock_15Rnd","M_Glock_15Rnd","M_Glock_15Rnd","Glock19","Att_Suppressor_Pistol","Att_Suppressor_Pistol","Att_Suppressor_Pistol","Att_Suppressor_Pistol","Att_Suppressor_Pistol","Ammo_9mm","Ammo_9mm","Ammo_9mm","Ammo_9mm","Ammo_9mm","Drink_Canteen","Drink_Canteen","Drink_Canteen","Food_CanPeaches","Food_CanPeaches","Food_CanPeaches","Tool_CanOpener","Tool_WeaponCleaningKit"],["MP5K"],["SVD"]];_fnc_spawn_in = { _lootIn = _this select 0; _spawnEventIn = _this select 1; { _spawnIn = _spawnEventIn createInCargo _x; _cfgSpawns = configFile >> "CfgVehicles"; _config = _cfgSpawns >> typeOf _spawnIn; _max = 0; _max = (getNumber (_config >> "stackedMax")); if (_max > 0) then { _spawnIn setQuantity _max; }; _classRes = _config >> "Resources"; if (isClass _classRes) then { _arreyRes = (getArray (_config >> "tooltipResources")); { _spawnIn setVariable [_x, (getNumber (_config >>"Resources" >>_x))]; }forEach _arreyRes; }; _baseAtta = getArray (configFile >> "cfgWeapons" >> (typeOf _spawnIn) >> "baseAttachments"); { _itemAtt = _spawnIn createWeaponAttachment _x; } forEach _baseAtta; if (_x == "Part_CanisterGasoline") then { _spawnIn setVariable ["liquidType", "gasoline"]; }; }forEach _lootIn;};_ii =0;diag_log format ["_ii: %1 , count: %2",_ii,(count _arrayLoot)];{ _spawnEvent = createVehicle ["TentLarge_Pitched", [(_cX+2.5*_ii),(_cY+4.833*_ii)], [], 0, "CAN_COLLIDE"]; _spawnEvent setDir 208; _loot = _x; diag_log format ["_ii: %1 , %2, %3",_ii,_spawnEvent,_loot]; [_loot,_spawnEvent] call _fnc_spawn_in; _ii = _ii + 1;}forEach _arrayLoot;//--------------------- конец палатка
= ready file for original code
_cX = 10291;_cY = 14149; - spawn coordinates
["MP5K"], - 2 tent
["SVD"]]; - 3 tent....