Jump to content
Sign in to follow this  
lockon3

Custom indestructible building on my terrain

Recommended Posts

Hi! I'm trying to create new indestructible object/building and use it in my terrain project. I have working, fully textured model (with all lods) and config and i can place it in game (by using mission editor) and in my terrain (by using Terrain Builder). My object placed in ingame mission editor is indestructible (as it should be) but this same object added to my terrain in Terrain Builder is destructible in game (after making .pbo and adding this terrain to game ofc.). It seems like Terrain Builder ignores config.cpp of my object. Here is my config.cpp:

 

class CfgPatches
{
    class Oldwarehouse1
    {
        units[] = {Oldwarehouse1};
        weapons[] = {};
        requiredVersion = 1.0;
    };
};
class CfgVehicles
{
    class All {};
    class Static: All {};
    class Building: Static {};
    class NonStrategic: Building {};
    class TargetTraining: NonStrategic {};
    class TargetGrenade: TargetTraining {};
    
    class Oldwarehouse1: TargetGrenade
    {
        model="Oldwarehouse1\Oldwarehouse1.p3d";
        vehicleClass = Structures;
        scope=2;
        displayName="Oldwarehouse1";
        armor = 3000;
        destrType="DestructNo";
    }
}

How to make this object completely indestructible even if its placed in my terrain in Terrain Builder?

Share this post


Link to post
Share on other sites

open .p3d model, go to geometry lod, named properties window see if you have an entry damage = building, if you have, then edit it to damage = no. if you don't have it, create it

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

×