Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
haleks

Adding inventory option to Animals

Recommended Posts

Hi guys!

 

As you probably know, it is currently impossible to interact with animals such as Rabbit_F (other than by killing them...).

I would like to add access to their inventory, just like you can access a dead unit's inventory.

 

Here's the current config :

class Animal_Base_F;

class Rabbit_f : Animal_Base_F {
	maximumLoad = 20;
	transportMaxMagazines = 1;//not sure it's used in Arma3
	weaponSlots = 1*256;//allows one mag only
};

Wich of couse doesn't work... Any config wizard to point me in the right direction? ;)

Share this post


Link to post
Share on other sites

This is only in theory. But have your tried making a backpack in your config? Depends on what you are trying to do? Then make a seperate config for your rabbit. Use bis config for rabit to set it up then do it like a reg soldier. lol Just woke up so I hope that makes some sense.

 

ps did you put that in something like this

class CfgVehicles
{
class Animal_Base_F;

class Rabbit_f : Animal_Base_F {
    maximumLoad = 20;
    transportMaxMagazines = 1;//not sure it's used in Arma3
    weaponSlots = 1*256;//allows one mag only
};
};

What you may need is something similer to this again theory

class CfgVehicles
{
class Rabbit_f


class MyRabbit_F: Rabbit_f
    {
        author="Yourname";
        _generalMacro="Rabbit_F";
        scope=2;
        displayName="Rabbit";
        weapons[]=
        {
            "arifle_MX_Camo_Hamr_pointer_F",
            "hgun_P07_F",
            "Throw",
            "Put"
        };
        respawnWeapons[]=
        {
            "arifle_MX_Camo_Hamr_pointer_F",
            "hgun_P07_F",
            "Throw",
            "Put"
        };
        magazines[]=
        {
            "30Rnd_65x39_caseless_mag",
            "30Rnd_65x39_caseless_mag",
            "30Rnd_65x39_caseless_mag",
            "30Rnd_65x39_caseless_mag",
            "30Rnd_65x39_caseless_mag",
            "30Rnd_65x39_caseless_mag",
            "16Rnd_9x21_Mag",
            "16Rnd_9x21_Mag",
            "16Rnd_9x21_Mag",
            "SmokeShell",
            "MiniGrenade",
            "MiniGrenade",
            "SmokeShellOrange",
            "Chemlight_green",
            "Chemlight_green"
        };
        respawnMagazines[]=
        {
            "30Rnd_65x39_caseless_mag",
            "30Rnd_65x39_caseless_mag",
            "30Rnd_65x39_caseless_mag",
            "30Rnd_65x39_caseless_mag",
            "30Rnd_65x39_caseless_mag",
            "30Rnd_65x39_caseless_mag",
            "16Rnd_9x21_Mag",
            "16Rnd_9x21_Mag",
            "16Rnd_9x21_Mag",
            "SmokeShell",
            "MiniGrenade",
            "MiniGrenade",
            "SmokeShellOrange",
            "Chemlight_green",
            "Chemlight_green"
        };
        linkedItems[]=
        {
            "V_PlateCarrierSpec_rgr",
            "H_HelmetB_camo",
            "ItemMap",
            "ItemCompass",
            "ItemWatch",
            "ItemRadio",
            "NVGoggles"
        };
        respawnLinkedItems[]=
        {
            "V_PlateCarrierSpec_rgr",
            "H_HelmetB_camo",
            "ItemMap",
            "ItemCompass",
            "ItemWatch",
            "ItemRadio",
            "NVGoggles"
        };
        cost=120000;
        camouflage= 0.8;
    };
};

Share this post


Link to post
Share on other sites
Sign in to follow this  

×