Jump to content
Sign in to follow this  
Woldren

how to connect a .paa picture to a model p3d

Recommended Posts

Hi! I am trying to add a new food in game, but if I use this script, it doesn't work. I can see the item in game, but the texture is always the Sewing Kit's texture. It is like the program doesn't recognize the part " hiddenSelectionsTextures[]="

 

This is the script I am using:

 

class CfgPatches
{
    class SGI_NewFood
    {
        units[]={};
        weapons[]={};
        requiredVersion=0.1;
        requiredAddons[]=
        {
            "DZ_Gear_Food",
            "DZ_Data"
        };
    };
};

class cfgVehicles
{
    class PowderedMilk;    
    class Food1: PowderedMilk {
        scope = 2;
        displayName = "Food1";
        descriptionShort = "Food1";
        model = "\food\food.p3d";
        rotationFlags = 17;
        weight = 1000;
        hiddenSelectionsTextures[]= {"food\data\food_co.paa"};

        class Nutrition {
            fullnessIndex = 2.500000;
            energy = 1000;
            water = 2.500000;
            nutritionalIndex = 1;
            toxicity = 0;
        };

        class AnimEvents {

            class SoundWeapon {

                class openTunaCan {
                    soundSet = "openTunaCan_SoundSet";
                    id = 204;
                };

                class Eating_Loop {
                    soundSet = "Eating_loop_Soundset";
                    id = 888;
                };

                class Eating_TakeFood {
                    soundSet = "Eating_TakeFood_Soundset";
                    id = 889;
                };

                class Eating_Fruit1 {
                    soundSet = "Eating_Fruit_Soundset";
                    id = 890;
                };

                class Eating_Fruit2 {
                    soundSet = "Eating_Fruit_Soundset";
                    id = 891;
                };

                class Eating_Fruit3 {
                    soundSet = "Eating_Fruit_Soundset";
                    id = 892;
                };

                class Eating_BoxOpen {
                    soundSet = "Eating_BoxOpen_Soundset";
                    id = 893;
                };

                class Eating_BoxShake {
                    soundSet = "Eating_BoxShake_Soundset";
                    id = 894;
                };

                class Eating_BoxEnd {
                    soundSet = "Eating_BoxEnd_Soundset";
                    id = 895;
                };
            };
        };
    };
};

enum {
    destructengine = 2,
    destructdefault = 6,
    destructwreck = 7,
    destructtree = 3,
    destructtent = 4,
    stabilizedinaxisx = 1,
    stabilizedinaxisy = 2,
    destructno = 0,
    stabilizedinaxesboth = 3,
    stabilizedinaxesnone = 0,
    destructman = 5,
    destructbuilding = 1
}
 

Edited by Woldren

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  

×