Home   Help Search Login Register  

Author Topic: Make an object show in mission editor  (Read 867 times)

0 Members and 4 Guests are viewing this topic.

BlinkDog

  • Guest
Make an object show in mission editor
« on: 21 Feb 2004, 08:17:35 »
Here is my problem. I have made some trenches and the model and config so far work fine. What I need to do is make the objects show in the mission editor. I plan on using them for an island I am making by placing them in with wrptool. I have noticed that other buildings/objects also do not show if placed via wrptool are fortress1 and 2 and some fence types. Is this something that is put in the config file or some model lod type like geometry? Here is my config:

// some basic defines
#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 true 1
#define false 0

// type scope
#define private 0
#define protected 1
#define public 2


class CfgPatches
{
   class CAF_KKK_Buildings
   {
      units[] = {"trench1","trench2","trench3","trench4","trench5"};
      weapons[] = {};
      requiredVersion = 1.40;
   };

};


class CfgVehicles
{
   class All {};
   class AllVehicles: All {};
   class Land: AllVehicles {};
   class Static: Land {};
   class Building: Static {};
   class NonStrategic: Building {};
   class Fence: NonStrategic{};
   class trench1: Fence
   {
      scope=public;
      model="\CAF_KKK_TRENCH\Pytle_BSL.p3d";
      vehicleClass="CAF_KKK_BUILDINGS";
      displayName="sandbags mousehole";
   };
   class trench2: Fence
   {
      scope=public;
      model="\CAF_KKK_TRENCH\Pytle_BSL2.p3d";
      vehicleClass="CAF_KKK_BUILDINGS";
      displayName="sandbags";
   };   
   class trench3: Fence
   {
      scope=public;
      model="\CAF_KKK_TRENCH\sandbagwall.p3d";
      vehicleClass="CAF_KKK_BUILDINGS";
      displayName="trenchwall";
   };
   class trench4: Fence
   {
      scope=public;
      model="\CAF_KKK_TRENCH\sandbagwall2.p3d";
      vehicleClass="CAF_KKK_BUILDINGS";
      displayName="trenchwall mousehole";
   };
   class trench5: Fence
   {
      scope=public;
      model="\CAF_KKK_TRENCH\sandbagwall3.p3d";
      vehicleClass="CAF_KKK_BUILDINGS";
      displayName="trenchwall high";
   };

};

   

BlinkDog

  • Guest
Re:Make an object show in mission editor
« Reply #1 on: 21 Feb 2004, 17:39:51 »
I figured it out.

For those in future who need to know the same thing here goes:

1. It is a property in the geometery lod called map and is contained in the p3d model.
2. The objects in game like pytle (sandbag walls) and fortress1 have the map=hide, I changed it to map=fence it now shows in the mission editor after placing it with wrptool.