OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ManatArms on 22 Jun 2006, 12:36:04

Title: Problems with Soldier´s Identity (Class CfgIdentities)
Post by: ManatArms on 22 Jun 2006, 12:36:04
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:

(http://www.rollenspielclub-alveran.de/images/screen.JPG)


Do you see my mistake, why does this problem appear?
Title: Re: Problems with Soldier´s Identity (Class CfgIdentities)
Post by: Doktor Headshot 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


Title: Re: Problems with Soldier´s Identity (Class CfgIdentities)
Post by: klavan 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
Title: Re: Problems with Soldier´s Identity (Class CfgIdentities)
Post by: ManatArms 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?
Title: Re: Problems with Soldier´s Identity (Class CfgIdentities)
Post by: The-Architect 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
Title: Re: Problems with Soldier´s Identity (Class CfgIdentities)
Post by: Trapper 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.
Title: Re: Problems with Soldier´s Identity (Class CfgIdentities)
Post by: ManatArms on 24 Jun 2006, 05:58:22
Yes, I forgot to say, that I use the Unsung Demo II.