mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-16 21:22:57 +03:00
Add a buildable storage crate
This commit is contained in:
@@ -842,4 +842,26 @@ class vendmachine2_kit: CA_Magazine
|
||||
create = "Vendmachine2_DZ";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class storage_crate_kit: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_STORAGECRATE;
|
||||
descriptionShort = $STR_EPOCH_STORAGECRATE_DESC;
|
||||
model = "\z\addons\dayz_epoch\models\supply_crate.p3d";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_wooden_crate_ca.paa";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Build
|
||||
{
|
||||
text = $STR_ACTIONS_BUILD;
|
||||
script = "spawn player_build;";
|
||||
require[] = {"ItemToolbox"};
|
||||
create = "StorageCrate_DZ";
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -112,6 +112,15 @@ class ItemPlank : CA_Magazine
|
||||
requiretools[] = {"ItemToolbox","Handsaw_DZE","Hammer_DZE"};
|
||||
output[] = {{"advanced_workBench_kit",1}};
|
||||
input[] = {{"ItemPlank",4},{"PartWoodPlywood",4},{"equip_nails",2}};
|
||||
};
|
||||
class Crafting4
|
||||
{
|
||||
text = $STR_EPOCH_ACTION_CRAFT_STORAGE_CRATE;
|
||||
script = ";['Crafting4','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
requiretools[] = {"ItemToolbox","Handsaw_DZE","Hammer_DZE"};
|
||||
output[] = {{"storage_crate_kit",1}};
|
||||
input[] = {{"ItemPlank",6},{"equip_nails",1}};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user