Jump to content
Sign in to follow this  
Sir stats worthy

Identity change

Recommended Posts

Yo!

I want to know how to change the name of a unit, hopefully without using scripting commands. I'm not 100% sure on how to use them.

Can anyone help?

Thanks! wink.gif

Share this post


Link to post
Share on other sites

Do you mean change the name of a unit when the game is running, it is not possible. You can however, edit the unit name from in the editor by making sure you are in advanced mode and double clicking on the unit.

RED

Share this post


Link to post
Share on other sites

Ahh Damn!

I need to change the names. For example on the radio when they say something the name comes up next to your number. Can you help RED ma man?

sad.gif

Share this post


Link to post
Share on other sites

I think I'm lookin' for the same thing. I'm trying to name a unit so when he says something it shows something like:

(MonkeyNutZ): Hi I'm MonkeyNutz!

not like:

Echo Black 1:Hi I'm MonkeyNutz!

Share this post


Link to post
Share on other sites

YES!!! I've just thought and found out!

In the guys init field put: this setIdentity "anything"

Then come out of the game (ALT+TAB), go into the notepad and type:

Cfg Identities

Class anything

Name:"anything"

Face:"FACE anynmber"

And I can't remember the other stuff. But thanks for replying anyway!

Yours greatfully, Sir Stats Worthy

smile.gifsmile.gifwink.gifwink.gif

Share this post


Link to post
Share on other sites

Yes you put that in your description.ext, sorry I forgot to post a reply to this.

RED

Share this post


Link to post
Share on other sites

can you give another example for description.ext?

I keep getting this error:

Users\Rexxenexx\missions\missionname\description.ext.Class': 'I' encountered instead of '='

Share this post


Link to post
Share on other sites

AAARRRRGG!!!

I thought I got it, but now I get:

Users\Rexxenexx\missions\missionname\description.ext.classify': 'c' encountered instead of '='

I tried the example from here

the init of char is: this set Identity id_MonJoueur;

in description.ext is:

classify cfgIdentities {   classify id_MonJoueur{        name = "Max Imum";     face = "Face35";     glasses = "sunglasses";     speaker = "Greg";     pitch = 1.0} };   ;;

confused.gif

Share this post


Link to post
Share on other sites

OKOK I think I got it!!!! I'm not getting any errors so I think its working. My PHP class is paying off biggrin.gif I cleaned the example like this:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class cfgIdentities

{

class id_MonJoueur

{

name = "BigDog";

face = "Face35";

glasses = "sunglasses";

speaker = "Greg";

pitch = 1.0;

};

};

<span id='postcolor'>

And now it seems to work cause OFP doesnt crash out and the guy its for has glasses, but his name doesnt show. I'll save it and put it on server it might work only in multiplayer???

Share this post


Link to post
Share on other sites

nm it doesnt show name  sad.gif just number

At this time i'd like to quote a character from Diablo 2

"HELP ME!!!!HELP!!!............HELP ME!!!!HELP!!!"

Share this post


Link to post
Share on other sites

Here ya go. Quit panicking!

class CfgIdentities

{

class David Armstrong

{

name = "David Armstrong";

face = "Face7";

glasses = "none";

speaker = "Jonah";

pitch = 1;

Does this help?

wink.gifwink.gif

Share this post


Link to post
Share on other sites

Just like before it still says "Delta Red 1: Yo!" (for example) instead of the name I want like "PeePeeNewton: Yo!". The face and sunglasses etc work.

sad.gif

A side note: Do you all crash if you dont have a "this setIdentity "Name" and load the mission? Cause that's when I get the error I said before. So I renamed description.ext to xdescription.ext then open the mission, setIdentity, then rename description.ext back. Then it doesn't crash. tounge.gif

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Sir stats worthy @ Oct. 11 2002,19:47)</td></tr><tr><td id="QUOTE">Does the name you want come next to Delta 1 in brackets?

You can't exactly have the name on its own.

confused.gif<span id='postcolor'>

Nope, I wish it did confused.gif

Like this would be good:

"Delta Red 1(MonkeyNutz): Yo!"

I guess it ain't possible unless someone is actually playing that character. Looks like I'll just have to settle with:

myunits select 0 sideChat "(MonkeyNutz) Yo!"

biggrin.gif  biggrin.gif  biggrin.gif

Share this post


Link to post
Share on other sites

No way! Your not going to suffer the problem I had.

I know! Try making the description.ext first (remember to put it in the mision folder) and then type the setIdentity in the units init. field after! Does that help Rexxenexx my man?

Sir Stats Worthy wink.gifwink.gifwink.gifwink.gif

Share this post


Link to post
Share on other sites

Thats exactly what I'm doing. like I said before the voice sunglasses and face work, but the custom name doesn't show.

I'll try again. btw does it work for you? Like if you have a AI on your team you named BillyTWilliams(w/ description.ext) and he says something like "ROGER" does it look like this?

2 (BillyTWilliams): "ROGER"

And like if you named him billy and script:

billy sideChat "WEEEEEEEEEEE!!!!"

It would type:

2 (BillyTWilliams): "WEEEEEEEEEEE!!!!"

Share this post


Link to post
Share on other sites

Well again name didn't do anythin' sad.gif

what is the name = for?? I tried to see if it names the character w/ the setIdentity but it doesn't. It seems so straitforward tounge.gif

Share this post


Link to post
Share on other sites

Make sure your doing everything correctly.

I'll type this up myself. Here:

class CfgIdentities

(press tab once) class WHATEVER

(press tab twice) name = "WHATEVER"

" " face = (e.g.)"FACE7"

" " glasses = (e.g.)"none"

" " speaker = (e.g.)"Jonah"

" " pitch = (e.g.)1

Make sure the WHATEVER after the class is the same thing as the setIdentity in the init field.

Does this help Rexxenexx?

wink.gifwink.gif

Share this post


Link to post
Share on other sites

You can't change the identity of a non player unit,

But you can do this in a trigger (no unit required for this):

[west, "hq"] sidechat "Testing testing 123"

RED

Share this post


Link to post
Share on other sites

wow.gif9--></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (RED @ Oct. 13 2002,11wow.gif9)</td></tr><tr><td id="QUOTE">You can't change the identity of a non player unit,

But you can do this in a trigger (no unit required for this):

[west, "hq"] sidechat "Testing testing 123"

RED<span id='postcolor'>

Darn, thats what I thought sad.gif

btw whats the diff. between

[west, "hq"] sidechat "Testing testing 123"

and

[west, "base"] sidechat "Testing testing 123"

same huh?

What else is there other than base and hq

Share this post


Link to post
Share on other sites

wow.gif4--></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Sir stats worthy @ Oct. 13 2002,10wow.gif4)</td></tr><tr><td id="QUOTE">Make sure your doing everything correctly.

I'll type this up myself. Here:

class CfgIdentities

(press tab once)   class WHATEVER

(press tab twice)          name = "WHATEVER"

       "     "                  face = (e.g.)"FACE7"

       "     "                  glasses = (e.g.)"none"

       "     "                  speaker = (e.g.)"Jonah"

       "     "                  pitch = (e.g.)1

Make sure the WHATEVER after the class is the same thing as the setIdentity in the init field.

Does this help Rexxenexx?

wink.gif  wink.gif<span id='postcolor'>

But everytime I leave out the { }; and ; OFP crashes when I hit save.

crash:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class CfgIdentities

class Booger

name = "Boogie"

face = "Face1"

glasses = "sunglasses"

speaker = "Paul"

pitch = 1.5

<span id='postcolor'>

no crash:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class CfgIdentities

{

class Booger

{

name = "Boogie";

face = "Face1";

glasses = "sunglasses";

speaker = "Paul";

pitch = 1.5;

};

};

<span id='postcolor'>

Share this post


Link to post
Share on other sites

Thanks Sir and RED!! biggrin.gif  biggrin.gif  biggrin.gif

I had to thank you all, you've helped soooo much. forgive me for dragging this thread till Xmas almost:p

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  

×