Jump to content

Recommended Posts

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
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.

  • Thanks 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×