Jump to content
gc8

Change unit name

Recommended Posts

Hi

when I place unit called beggar in the editor is it possible to change the name to something else than beggar?

 

setName does not seem to work.....

 

thx!

Share this post


Link to post
Share on other sites
1 hour ago, Grumpy Old Man said:

What did you try?

Seems you mistake name with class name.

 

Cheers

 

I tried the examples in setName wiki page.

Share this post


Link to post
Share on other sites

@HazJ I tried that but it only changes the unit name for lobby. In game the name remains the same.

 

Edit: setVehicleVarName also does nothing...

Share this post


Link to post
Share on other sites

That is class name description. Not sure if you can rename it with SQF. You need to rewrite config to be able to do so ( e.g. make a config / mod ) and everybody need to download it.

Share this post


Link to post
Share on other sites

I put that in  Description.ext.

 

from the wiki:

 

class CfgIdentities
{
    class MyLittleSoldier
    {
        name = "Givens";
        nameSound = "Givens";
        face="WhiteHead_06";
	glasses="None";
	speaker="Male05ENG";
	pitch=1.1;
    };
};

 

then in units init field: 

 

this setIdentity "MyLittleSoldier";

 

 

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

×