Jump to content
Sign in to follow this  
Khalashnikovf

What is wrong with this SetIdentity?

Recommended Posts

Im trying to make identities to showing in game

I made this:

class CfgIdentities
{
class Overlord {
name = "Overlord";
face = "Face35";
glasses = "none";
speaker = "Eva";
pitch = 1.1;
};

class Pilot {
name="Pilot";
face="Face05";
glasses="none";
speaker="Jonah";
pitch=1.0;
};

};

Then I made in init file this:

overlord setIdentity "Overlord";
c130_real setIdentity "Pilot"; 

So its not showing their names in game? Its still showing for example 1-1-C 1: " bla bla bla" ...

I searched forum for this thing and there is everywhere only this guide,nothing more.

Im using sideRadio in desription.ext and stringtable.xml for messages.

So what is wrong?

Share this post


Link to post
Share on other sites

I'm using setGroupID in the init-field of the leader but when I start the MP mission, they're called 1-1-C etc. It works fine in the mission, but I would like the groupIDs in the first screen too (where you select who you want to play).

Share this post


Link to post
Share on other sites

Well,this works fine for groups. But I need set identity for members of squad. Because they are talking between them.

And this is just making them to talk like Scooter 1, Scooter 2, etc.

That is not what I want

Share this post


Link to post
Share on other sites

You cannot change the 1-1-C on the player screen. You can however give the individual units names by typing in the unit's description field.

Share this post


Link to post
Share on other sites

Try this, I changed old OFP speakers to new ones (01-05 + EN for english), and made it look "prettier" (indenting, consistent space use, carriage returns):

class CfgIdentities
{
class Overlord
{
	name = "NameOfOverlord";
	face = "Face35";
	glasses = "none";
	speaker = "Male01EN";
	pitch = 1.1;
};
class Pilot
{
	name = "NameOfPilot";
	face = "Face05";
	glasses = "none";
	speaker = "Male03EN";
	pitch=1.0;
};
};

Change names to what you want them, if can be anything, but using the classname I assume was only for testing.

Both personal names and group names will be used by the chat system depending on what system is used, i,e:

With the chat commands, AI will not use names, only players. Keeps them separate I guess.

But using kbTell I believe names of AI is shown, maybe, sometimes. Hmm, I'm getting names when in Coltan Blues (heli ride in), but not in own mission (it's a logic talking though).

If you don't assign unit identities to them, random ones will be generated, with variations in name, faces, glasses, speakers etc. You tend to use them only in missions where you think it is important, i.e. a character that is used in several missions, or a real character you want to portray, or just because you want him to have a certain name or just be in control :)

hint format ["My name is %1", name yourunit];

should give you the units name. There are cases when you want to use it.

Share this post


Link to post
Share on other sites

Hi all, could i use this to change the name of a unit to what a player will see in game, for example i look at a Ural and it says Ural under my crosshair or on the map but in stead of Ural i would like to have a different name say truck for the sake of simplicity, or would i need to do something different like some sort of display name command ?

Share this post


Link to post
Share on other sites

I was reading about displayName on biki but i still dont understand how i can change the units name.:confused:

Share this post


Link to post
Share on other sites

You can't change a units displayName.

You can change a units name by assigning him identities setup in description.ext, by using the setIdentity command. Name is part of his identity. But by doing this, his name will still not show up during chat based commands (might do using kbTell command, which is kinda hard to setup), but it will show his correct name if you're using the name command.

Share this post


Link to post
Share on other sites

Thanks for the reply, Ok so do you mean you cant change the actual name thats displayed on mouse over when you look at a vehicle either in map view or player view? cause i was just wondering if i can change the name of a UralCivil to Construction Truck so that the player can tell if its just a regular Ural or Construction Truck.

Share this post


Link to post
Share on other sites
No, that is driven by displayName, a config entry for that vehicle.

would i need to do something with this ?

_displayName = getText (configFile >> "CfgVehicles" >> (typeOf _vehicle) >> "displayName");
sorry im not the brightest when it comes to scripting.

Share this post


Link to post
Share on other sites

What you get there can be used to describe a vehicle in a dialog, a hint box, or action - that sort of stuff. In order to change the name you have to make an addon that overwrites that config entry. Note that there exist no setText (in that context) that would do what I believe you want to do, only getText - read only access. I just wish we had a setText (config) though :D

Share this post


Link to post
Share on other sites

Ok thanks for clearing that up CarlGustaffa :) ok so ill have to figure out how to make an addon then. thanks again

Share this post


Link to post
Share on other sites

The biki being almost entirely OPF-era makes learning new things incredibly difficult sometimes.

I used the example there for setIdentity, but it doesn't work, probably because all those faces and voices aren't valid for A2:OA. All I want is a player with a name that isn't my OA Profile Name, and a few other units with names besides.

The maddening thing is, my name randomly started working for one test (I didn't actually change anything to fix it), only to gave my Russian a British English voice. Then it started refusing to run the mission with Biki example values for the face. :mad:

Help! I couldn't find any A2 voice and face lists online, and I need a working male character that I can name.

Share this post


Link to post
Share on other sites

Here's a video I made for the BAF faces/voices if that helps. :)

6dRWgnKkMrc&hd=1

Classnames for faces can be found in this sticky as well.

Share this post


Link to post
Share on other sites

I think that worked, thanks. I'll see how the female civilians work out.

Edited by maturin

Share this post


Link to post
Share on other sites

Could someone please tell me what's wrong with this code?

I'm getting an error that is reporting "line 209" of my script is wrong.

Line 209 is exactly the "class CfgIdentities" line at the very top.

Note: I am disabling voices for my Team, so speaker and pitch will not matter.

This is in my Description.ext:

class CfgIdentities
{
       class Li Siu Lung
   {
       name = "Li Siu Lung";
face = "Face_124_camo3_PMC";
       glasses = "None";
       speaker = "Male04";
       pitch = 1.1
   };
class Cheung
   {
       name = "Cheung";
face = "Face_119_camo4_PMC";
       glasses = "None";
       speaker = "Male04";
       pitch = 1.1;
   };
       class Longwei
   {
       name = "Longwei";
       face = "Face_112_camo2_PMC";
       glasses = "None";
       speaker = "Male04";
       pitch = 1.1;
   };
       class Jinhai
   {
       name = "Jinhai";
face = "Face_111_camo5_PMC";
       glasses = "None";
       speaker = "Male04";
       pitch = 1.1;
   };
       class Guangli
   {
       name = "Guangli";
face = "Face_108_camo1_PMC";
       glasses = "None";
       speaker = "Male04";
       pitch = 1.1;
   };
       class Minghua
   {
       name = "Minghua";
face = "Face_113_camo4_PMC";
       glasses = "None";
       speaker = "Male04";
       pitch = 1.1;
       };
       class Dingxiang
   {
       name = "Dingxiang";
face = "Face_115_camo6_PMC";
       glasses = "None";
       speaker = "Male04";
       pitch = 1.1;	
   };
       class Boqin
   {
       name = "Boqin";
face = "Face_114_camo3_PMC";
       glasses = "None";
       speaker = "Male04";
       pitch = 1.1;
   };
};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×