Jump to content
Sign in to follow this  
malakdecaen

How to Add collision to my addon ?

Recommended Posts

Hi everybody and sorry by advance for my bad english ,

I have a problem with my addon , it work in game but the problem is the collision , i can walk into the objects !!!

see :

2013031800001.jpg

i put my config.cpp :

#define private		0
#define protected		1
#define public		2

enum {
DESTRUCTENGINE = 2,
DESTRUCTDEFAULT = 6,
DESTRUCTWRECK = 7,
DESTRUCTTREE = 3,
DESTRUCTTENT = 4,
STABILIZEDINAXISX = 1,
STABILIZEDINAXESXYZ = 4,
STABILIZEDINAXISY = 2,
STABILIZEDINAXESBOTH = 3,
DESTRUCTNO = 0,
STABILIZEDINAXESNONE = 0,
DESTRUCTMAN = 5,
DESTRUCTBUILDING = 1,
};

class CfgPatches {
class Coffre {
	units[] = {};
	weapons[] = {};
	requiredAddons[] = {};
};
};

class CfgVehicles {
class Thing;	// External class reference

class Coffre : Thing {
	_generalMacro = "Coffre";
	scope = public;
	Icon = "\coffre\Texture\ico\iconbox.paa";
	model = "\coffre\coffre.p3d";
	displayName = "Coffre Tresor";
	vehicleClass = "Objects";
	destrType = "DestructNo";
	accuracy = 0.2;		
};
};

How can i fix that ???

Thanks by advance for your help ;

Edited by kakarot

Share this post


Link to post
Share on other sites

i don't understand , when i change the LOD 0.00 to geometry i can add mass but i can't see it in game ? what wrong ?

and when i create a new LOD the chest is in yellow but i can do nothing .

Share this post


Link to post
Share on other sites

You add the geometry LOD and you need to then put something in it which you then add mass to, a square preferably. Just go to the create menu and create a box and then resize it to the same size as your chest.

The yellow is a background outline showing you what you primary LOD looks like - its not a physical model in the workspace.

Adumb linked you everything you could possibly want to know about Geometry LODs.

Share this post


Link to post
Share on other sites

I wish there was a "generate collision from mesh" button.

What a time saver.

Share this post


Link to post
Share on other sites

thanks a lot for your help , but it still not work ! i can still paste in my chest .

i don't know what's wrong with my chest .

---------- Post added at 01:25 PM ---------- Previous post was at 01:24 PM ----------

I wish there was a "generate collision from mesh" button.

What a time saver.

where is this button ?

Hey thank you very much for you'r help i appreciate that , now my chest have collision !! thanks a lot for you'r help .

Edited by kakarot

Share this post


Link to post
Share on other sites

The link I posted has step by step how to make a working geo LOD.

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
Sign in to follow this  

×