Home   Help Search Login Register  

Author Topic: setidentity command  (Read 1030 times)

0 Members and 1 Guest are viewing this topic.

THEreconNinja

  • Guest
setidentity command
« on: 25 Sep 2002, 23:52:47 »
!!! i cant find anywhere how to use the setidentity command, other than i need to use the description.ext file with it, but i dont know what the code in the ext file is, could someone help me or post a template of an example one? thanks.

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:setidentity command
« Reply #1 on: 26 Sep 2002, 03:16:39 »
Welcome to the forums, THEreconNinja

You'll need to add something like this to your description.ext:

---
// This class allows you to provide some uniqueness to some of the characters in the game.
class CfgIdentities
{


    // The class name is referenced in missions.sqm file with setidentify command
     class morgan
     {
        // Name of this individual
        // This name appears on the screen when the associated character does a
        // builtin action (for example..telling others to dismount)

        name = "Captain Morgan";
       
        // Face texture to use for this character
         face = "Face1";


        // Wearing glasses?
        // Values are :
        // "none" = no glasses
                     // "spectacles"
                     // "sunglasses"

        glasses = "spectacles";


        // Voice to use for this character
         speaker = "Greg";


        // Pitch of voice
        // 1.0 = normal pitch
        // < 1.0 = deeper voice
        // > 1.0 = higher voice

        pitch = 1.00;
    };
};

---

So with that particular bit in the description.ext, I would then put:

this setidentity "morgan"

in the init field of the character I wanted as captain Morgan.
Hope that sheds some light for ya ;)

Offline Archangel Scream

  • Former Staff
  • ****
  • OFPEC Former Staff: Audio editing & mission review
    • Britecorp
Re:setidentity command
« Reply #2 on: 26 Sep 2002, 23:07:57 »

Or, a simplified version [and expt with it]:


class CfgIdentities
{
class Officer
{
name = "officer1";
face = "Face6";
glasses = "none";
speaker = "Adam";
pitch = 1.00;
};
};

where the actual character would have this in either his init line, or script that defines that characters parameters before the game starts:

this setidentity "Officer"