Jump to content
Sign in to follow this  
VovoNauta

Addon (building) help.

Recommended Posts

S!

Solved. (replaced config.cpp for other and add in Memory LOD : Name=Class, Value=House)

I made a (first) building to put on my (first)island and I'm having a problem (or many ..lol):

Term_Pass.jpg

1-When I put the building through the Visitors3 (bulldozer) on my island the doors do not work. (open / close), nor appears the option to open or close.

2-If I put the building through the Game Editor (arma2OA) doors work normally.

What am I doing wrong, because the building must be placed through the Visitor and not by the game editor.

My ambient(Tree):

p:\ca

p:\prc\Term_Pass (my addon)

Arma2:

C:\Program Files (x86)\Steam\steamapps\common\Arma 2\@prc\Addons\FNoronha.pbo (my Island)

C:\Program Files (x86)\Steam\steamapps\common\Arma 2\@prc\Addons\Term_Pass.pbo (building)

my config.cpp:

#define true			1
#define false			0

#define VSoft			0
#define VArmor			1
#define VAir			2

#define LockNo			0
#define LockCadet		1
#define LockYes			2

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

#define TEast			0
#define TWest			1
#define TGuerrila		2
#define TCivilian		3
#define TSideUnknown		4
#define TEnemy			5
#define TFriendly		6
#define TLogic			7

#define ReadAndWrite		0
#define ReadAndCreate		1
#define ReadOnly		2
#define ReadOnlyVerified	3


class CfgPatches
{
   class Term_Pass
   {
       units[]={"Term_Pass"};
       weapons[]={};
       requiredVersion= 1.03;
       requiredAddons[]={"CAData","CABuildings","CAMisc"};
       version= 1.14;
	fileName = "Term_Pass.pbo";
	author = "prc";
   };
};

class CfgVehicleClasses
{
   class prc_Structure
   {
       displayName="Term_Pass";
   };
};

class CfgFactionClasses
{
       class prc
       {
              displayName = "prc model";                        // Nom de la class Faction dans l'éditeur.
              priority = 1;
              side = 2;                                              // Camp TGuerrila (voir liste abrégé ci_dessus).
       };
};


class CfgVehicles
{
class Strategic;	// External class reference

class Land_Term_Pass : Strategic
   {
	scope = 2;                                                            // public (voir liste abrégé ci-dessus).
	model = \prc\Term_Pass\Term_Pass.p3d;                     // Nom et chemin du .p3d.
	placement = vertical;
	mapSize = 3;                                                          // Taille de l'icône dans l'éditeur.
	displayName = "Term_Pass";                                         // Nom de l'icône dans éditeur.
	vehicleClass = "prc_Structure";                                          // class du véhicule (voir ci-dessus).
	faction = "prc";                                                     // Faction

	cost = 0;
	armor = 800;                                                // C'est la résistance à la destruction de l'objet.

	ladders[] =    {{"ladder_1_start","ladder_1_end"}};


	class AnimationSources 
	{
		class door_1		// Marquer le nom qui est défini à côté de "source" dans le fichier model.cfg
		{
			source = "user"; 
			animPeriod = 2;  // Durée de l'animation
			initPhase=0;
		};		
	};

	class UserActions 
	{
		class OpenDoors1 
		{
			displayName = "Open Door";		// A marquer dans le fichier "stringtable.csv" S'affichera dans le menu deroulant				
			//position = "door_knob_1";				// Le nom de la poignée de la porte dans le LOD Memory
			position = "osa_dvere1";
			radius = 2;
			onlyForPlayer = 0;
			condition = "this animationPhase ""door_1"" < 0.5";
			statement = "this animate [""door_1"", 1]";
		};

		class CloseDoors1 
		{
			displayName = "Close Door";
			//position = "door_knob_1";
			position = "osa_dvere1";
			radius = 2;
			onlyForPlayer = 0;
			condition = "this animationPhase ""door_1"" >= 0.5";
			statement = "this animate [""door_1"", 0]";
		};
       };
   };
};
};

TKS!!!

Edited by VovoNauta
Solved

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  

×