S4pph1r3Sam 0 Posted July 5, 2018 So, Yesterday I started a mod project without any 3d modeling experience nor arma 3 modding experience, I watched a lot of tutorials and I was understanding them, I think, but now I'm stuck at the addon builder because it says to me: Build failed. Result code=1. Can someone help me? The config.cpp is like this: class CfgVehicles { class SpikeStrip { units[] = {}; weapons[] = {}; scope = 2; model = "\Sam Sapphire Spike Strip\SpikeStrip.p3d"; mapSize = 5; displayName = "Spike Strip"; ace_cargo_size = 1 ; ace_cargo_canLoad = 1; ace_dragging_canDrag = 1; ace_dragging_dragPosition[] = {0, 1.2, 0}; ace_dragging_dragDirection = 0; ace_dragging_canCarry = 1; ace_dragging_carryPosition[] = {0, 1.2, 0}; ace_dragging_carryDirection = 0; cost = 0; armor = 5000; }; }; BTW, it is a spike strip that works with ace, can someone maybe tell me how to change the model (Like Open = SpikeStripOpen.p3d, and closed = SpikeStrip.p3d)? P.S: I need also a way for damaging wheels, I can do it in the config.cpp or I need to do it somewhere else? Share this post Link to post Share on other sites
Dedmen 2718 Posted July 6, 2018 9 hours ago, S4pph1r3Sam said: units[] = {}; weapons[] = {}; What is that? that looks like it should be in CfgPatches and have an entry in the "units" part. 9 hours ago, S4pph1r3Sam said: class SpikeStrip You are missing inheritance. You probably want to Inherit from Static or House_F 9 hours ago, S4pph1r3Sam said: can someone maybe tell me how to change the model Yeah sure. 9 hours ago, S4pph1r3Sam said: model = "\Sam Sapphire Spike Strip\SpikeStrip.p3d"; There. Just enter the different model. 9 hours ago, S4pph1r3Sam said: P.S: I need also a way for damaging wheels, I can do it in the config.cpp or I need to do it somewhere else? If the vehicle collides with it the wheels break like if you drive into a wall. But not if it just slowly drives over it. You might be able to do that via scripting. But I don't know a easy reliable way unless you make your spike strip a physx object. Then you can use the EPE eventhandlers. 1 Share this post Link to post Share on other sites
Dedmen 2718 Posted July 9, 2018 https://github.com/acemod/ACE3/tree/master/addons/concertina_wire Here is a example of how ACE does it with razorwire. It looks like they just made the razorwire easily destructible. And if you destroy the razorwire by driving into it the Eventhandler is also killing the vehicles wheels. Share this post Link to post Share on other sites