OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: PatriotTOM on 22 Mar 2005, 11:13:29

Title: help with Solder's names
Post by: PatriotTOM on 22 Mar 2005, 11:13:29
hi how do you change the units names. As in if i wanted a man called "john Smith"  in my mission how can i do that. This may be basic but i'm new please help.
Title: Re:hel with Solder's names
Post by: 456820 on 22 Mar 2005, 11:18:03
there is two ways the easy way is to open his screen by double clicking on him then there should be a box saying name or something like that then simply type in the name
the harder way is to put it in the description.ext file
like this

Code: [Select]
class CfgIdentities
{
   class JohnSmith
   {
      name = "John Smith";
      face = " chose your own face ";
      glasses = "none";
      speaker = " your choice ";
      pitch = 1;
   };
};
then in the units init field put
Quote
this setidentity ["johnsmith"]
i think that right

the first method will not show his name john smith on the radio messages but the second will
Title: Re:help with Solder's names
Post by: nominesine on 22 Mar 2005, 11:44:52
Naming the unit in the "name" field doesn't help. That name is only used for refering to the unit in scripts. But the second method works perfectly. From the looks of it even the syntax is correct.
Title: Re:help with Solder's names
Post by: RujiK on 22 Mar 2005, 19:56:52
Almost right for the setidentity but no Brackets ([]) so
this setidentity "John"
Also note for this to work you will have to do what he said and put in a entry in the description.ext.
Title: Re:help with Solder's names
Post by: PatriotTOM on 24 Mar 2005, 15:41:12
That did it. Thanks. ;D