zelik 10 Posted August 3, 2014 (edited) I need some help with a config.cpp file for a mod i'm planning on making. I'm wanting to make a mod that has 3 items in it. This is going to be for my Epoch server. I need one item that is used to craft another, then that item will be used in the epoch modular building system to place the last item. For instance find a stick on the ground, use the stick to make a spike trap kit, and then place the spike trap kit to make a spike trap. I hope that makes sense. All three items will be modeled and textured by me(i been working on these for awhile now). I'm not making sticks and traps though, that was just an example. Here is what I have so far for my config. class CfgPatches { class SOMETHING { units = {}; weapons = {}; requiredVersion = INTEGER; requiredAddons = {}; }; }; class CfgVehicleClasses { class SOMETHING { displayName = "DISPLAY-NAME"; }; }; class CfgVehicles { //This will be the Item placed on the map. /*extern*/ class VEHICLE-TYPE; class STICK-TRAP: VEHICLE-TYPE { scope = INTEGER; accuracy = INTEGER; displayName = "DISPLAY-NAME"; vehicleClass = "SOMETHING"; nameSound = "SOUND"; class EventHandlers { \\This is what the stick trap does. Example: deals damage when someone walks near init = "SCRIPT"; }; }; }; class CfgMagazines { /*extern*/ class CA_Magazine; class STICK-TRAP-KIT: CA_Magazine { //This will be the Kit that places the item on the map scope = INTEGER; count = INTEGER; type = INTEGER; displayName = "DISPLAY-NAME"; descriptionShort = "SHORT-DESCRIPTION"; model = "MODEL-PATH"; picture = "PICTURE-PATH"; texture = "TEXTURE-PATH"; weight = INTEGER; class ItemActions { class Build { \\This builds the stick trap text = "TEXT"; script = "spawn player_build;"; require = {"ItemToolbox"}; create = "STICK-TRAP"; }; }; }; class STICK: CA_Magazine { //This item will be used to make the kit scope = INTEGER; count = INTEGER; type = INTEGER; displayName = "DISPLAY-NAME"; model = "MODEL-PATH"; picture = "PICTURE-PATH"; texture = "TEXTURE-PATH"; descriptionShort = "SHORT-DESCRIPTION"; class ItemActions { class Crafting { \\This give a right click menu to make the Stick trap kit text = "TEXT"; script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; neednearby = {}; requiretools = {"ItemToolbox"}; output = {{"STICK-TRAP-KIT", INTEGER}}; input = {{"STICK", INTEGER}}; }; }; }; }; I have looked and looked for a config tutorial that involves what I am trying to do and I haven't found one. So if this goes as expected I'll make one for everyone to go by. I'll even release example files. Thanks in advance. -Z Edited September 5, 2014 by zelik Share this post Link to post Share on other sites