OFPEC Forum

Addons & Mods Depot => Arma2 - Configs & Scripting => Topic started by: Meatball0311 on 22 Jun 2011, 07:25:56

Title: Custom Identities?
Post by: Meatball0311 on 22 Jun 2011, 07:25:56
I would like to make a custom Identity, that uses Face01 thru Face20.  Is this possible?
Title: Re: Custom Identities?
Post by: Wolfrug on 23 Jun 2011, 14:19:41
Hey,

For just a mission, or for an addon? If it's just for a mission, then it's as easy as adding something to your description.ext. If it's for an addon, it's almost as easy - although the "identity" part is not. So maybe you should specify: do you want a custom identity (i.e. face, voice, pitch, glasses) or a set of custom faces (for an addon)?

If it's just an identity, this needs to be moved to the general scripting area. As for an identity, it's as easy as adding this to your description.ext:

Code: [Select]
class CfgIdentities
{
    class JohnDoe_1
    {
        name = "John Doe Snr.";
        face = "Face01";
        glasses = "None";
        speaker = "Male02";
        pitch = 1.1;
    };
   class JohnDoe_2
    {
        name = "John Doe Jr.";
        face = "Face20";
        glasses = "None";
        speaker = "Male02";
        pitch = 1.1;
    };
};

Wolfrug out.