Home   Help Search Login Register  

Author Topic: Problems with Soldier´s Identity (Class CfgIdentities)  (Read 1563 times)

0 Members and 1 Guest are viewing this topic.

ManatArms

  • Guest
Hallo. First of all, please apologize my worse english, IÂ'm from GER.

I have a problem with the Identity of a soldier in the squad, the player is m,ember of.
I chose a name for it, but the program doesnÂ't copy it, every-time, I start the preview or mission, the soldierÂ's name is chosen my Flashpoint. But I want the program to choose the name I suggested. I tried out a lot, but canÂ't solve the problem on my own. I think, itÂ's only a little fault of mine, but I canÂ't identify it. Please help me, hereÂ's some Info about:

The Class CfgIdentities-Part of my Description.ext

Quote
class CfgIdentities
{
class Team_Leader
{
name = "John Anderson";
face = "Face1";
glasses="None";
speaker = "adam";
pitch = 1;
};
};

And this is the editor-configuration for the unit:




Do you see my mistake, why does this problem appear?

Re: Problems with Soldier´s Identity (Class CfgIdentities)
« Reply #1 on: 22 Jun 2006, 13:10:54 »
Let me try to help you.
First check the description.ext file.
It is very important the alignment of the commands.
Here you are a fixed description.ext file:

class CfgIdentities
{
              class Team_Leader
             {
                       name = "John Anderson";
                       face = "Face1";
                       glasses="None";
                       speaker = "adam";
                       pitch = 1;
             };
};

and in the game editor you have to create an activation-on-start trigger with the following line onto the onActivation tab:

Team_Leader setIdentity "Team_Lader"

Keep on mind that this Team_Leader is the name of your soldier that you have chosen and you have put previously in the tab of unit (with his own script, rank, role etc.) and this Team_Lader is the name that matches with the one created onto description.ext file.

I hope to have helped you; let me know how it ends.

Guido


? (this == thinkable) : this = scriptable

klavan

  • Guest
Re: Problems with Soldier´s Identity (Class CfgIdentities)
« Reply #2 on: 22 Jun 2006, 13:24:53 »
Or you can simply put the following directly in the initialization fleld of the unit:
this setidentity "Team_Leader"

Avoid to clung the map with triggers/gamelogics as possible, this will help you to reduce the lag.
Klavan

ManatArms

  • Guest
Re: Problems with Soldier´s Identity (Class CfgIdentities)
« Reply #3 on: 22 Jun 2006, 14:14:16 »
Splendid.


The part with the names work, but the faces and voices are still random. Any more ideas?
« Last Edit: 23 Jun 2006, 05:33:42 by Chr. Lukassen »

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re: Problems with Soldier´s Identity (Class CfgIdentities)
« Reply #4 on: 23 Jun 2006, 11:45:06 »
They should not still be random. If you followed the exaples correctly and added your own new sections there should be no ranomness.

Here is a full list of the faces with pics to help you.

http://www.megaupload.com/?d=Y725FK16

Download and unzip the files into a new folder
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline Trapper

  • Honoured Contributor
  • ***
  • I'm a llama!
Re: Problems with Soldier´s Identity (Class CfgIdentities)
« Reply #5 on: 23 Jun 2006, 16:54:09 »
Your screenshot bespeaks you're using a addon unit. It's very likely that it comes with it's own random face script.
Try to give the setidentity command a few seconds after mission begin. I don't know if this is possible.

ManatArms

  • Guest
Re: Problems with Soldier´s Identity (Class CfgIdentities)
« Reply #6 on: 24 Jun 2006, 05:58:22 »
Yes, I forgot to say, that I use the Unsung Demo II.