Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

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

×