OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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.
-
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
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
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
-
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.
-
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.
-
That did it. Thanks. ;D