Afternoon All,
I'm looking into creating new items for a mod I'm developing that would run alongside Epoch or Dayz. Basically an add-on that would allow things like Sigma Cars or law enforcement vehicles to be run on the server after players download the additional mod and start it.
I'm trying to create new items in a new cfgMagazines.hpp in a new PBO.
the config.cpp in the new PBO reads as follows
In the configs folder there is cfgMagazines.hpp & cfgVehicles.hpp.
As a test object I'm trying to create another plot pole object:
cfgMgazines.hpp
I'm having issues getting this magazine to appear in my inventory.
Does anyone with this experience mind helping me sort this out?
Thanks,
Sand
I'm looking into creating new items for a mod I'm developing that would run alongside Epoch or Dayz. Basically an add-on that would allow things like Sigma Cars or law enforcement vehicles to be run on the server after players download the additional mod and start it.
I'm trying to create new items in a new cfgMagazines.hpp in a new PBO.
the config.cpp in the new PBO reads as follows
Code:
#include "configs\cfgMagazines.hpp"
#include "configs\cfgVehicles.hpp"
In the configs folder there is cfgMagazines.hpp & cfgVehicles.hpp.
As a test object I'm trying to create another plot pole object:
cfgMgazines.hpp
Code:
class CfgMagazines {
class CA_Magazine; // External class reference
class city_plot_kit : CA_Magazine {
scope = public;
count = 1;
type = 256;
displayName = "20 Meter Plot";
model = "\z\addons\dayz_epoch\models\supply_crate.p3d";
picture = "\z\addons\dayz_epoch\pictures\equip_wooden_crate_ca.paa";
descriptionShort = "Plot Pole: A placeable pole that will allow you and your friends to build within a 20m radius";
class ItemActions {
class Build {
text = "$STR_ACTIONS_BUILD";
script = "spawn player_build:";
require[] = {"ItemEtool","ItemToolbox"};
create = "Plastic_Pole_EP2_DZ";
};
};
};
}
I'm having issues getting this magazine to appear in my inventory.
Does anyone with this experience mind helping me sort this out?
Thanks,
Sand