Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Custom Identities?  (Read 6791 times)

0 Members and 1 Guest are viewing this topic.

Offline Meatball0311

  • Members
  • *
Custom Identities?
« on: 22 Jun 2011, 07:25:56 »
I would like to make a custom Identity, that uses Face01 thru Face20.  Is this possible?

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re: Custom Identities?
« Reply #1 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.
"When 900 years YOU reach, look as good you will not!"