Jump to content
Sign in to follow this  
D1Z4STR

set identity issue

Recommended Posts

Trying to change a characters name for ingame units instead of generic names. I tried the this setIdentity "name"; in the initilization area and it doesnt do anything. I also tried typing a name in the description box and it doesnt work. Can someone help?

Share this post


Link to post
Share on other sites

If you expect help from others, you could at least provide all the information required like what your description.ext looks like...

Share this post


Link to post
Share on other sites

From what you've said it sounds like you didn't make a "description.ext" file at all. SetIdentity reads from there, so to set a unit's name to something, you'd need to make a description and type something like this:

class CfgIdentities
{
   class Ash_Williams
   {
       name = "Bruce Campbell";
       face = "Face20";
       glasses = "Delta_glasses";
       speaker = "Dan";
       pitch = 0.1;
   };
};

Which means that you would put the following code in the unit's init field:

this setIdentity "Ash_Williams"

Check this BIKI page out.

Edited by OnlyRazor

Share this post


Link to post
Share on other sites

If

this setIdentity "Ash_Williams"

will not work, give that unit in editor name for example unit1 and in init write

unit1 setIdentity "Ash_Williams"

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  

×