Sir stats worthy 0 Posted October 5, 2002 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! Share this post Link to post Share on other sites
RED 0 Posted October 6, 2002 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
Sir stats worthy 0 Posted October 8, 2002 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? Share this post Link to post Share on other sites
Rexxenexx 0 Posted October 8, 2002 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
russin 0 Posted October 9, 2002 yes ive searched this but seem to find nil anyone ? Share this post Link to post Share on other sites
Sir stats worthy 0 Posted October 9, 2002 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 Share this post Link to post Share on other sites
RED 0 Posted October 9, 2002 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
Sir stats worthy 0 Posted October 9, 2002 No worrys RED. Share this post Link to post Share on other sites
Rexxenexx 0 Posted October 9, 2002 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
Rexxenexx 0 Posted October 9, 2002 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} }; Â ;; Share this post Link to post Share on other sites
Rexxenexx 0 Posted October 9, 2002 OKOK I think I got it!!!! I'm not getting any errors so I think its working. My PHP class is paying off 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
Rexxenexx 0 Posted October 9, 2002 nm it doesnt show name  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
Sir stats worthy 0 Posted October 10, 2002 Here ya go. Quit panicking! class CfgIdentities { class David Armstrong { name = "David Armstrong"; face = "Face7"; glasses = "none"; speaker = "Jonah"; pitch = 1; Does this help? Share this post Link to post Share on other sites
Rexxenexx 0 Posted October 10, 2002 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. 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. Share this post Link to post Share on other sites
Sir stats worthy 0 Posted October 11, 2002 Does the name you want come next to Delta 1 in brackets? You can't exactly have the name on its own. Share this post Link to post Share on other sites
Rexxenexx 0 Posted October 11, 2002 </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. <span id='postcolor'> Nope, I wish it did 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!" Â Â Share this post Link to post Share on other sites
Sir stats worthy 0 Posted October 12, 2002 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 Share this post Link to post Share on other sites
Rexxenexx 0 Posted October 12, 2002 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
Rexxenexx 0 Posted October 12, 2002 Well again name didn't do anythin' 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 Share this post Link to post Share on other sites
Sir stats worthy 0 Posted October 13, 2002 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? Share this post Link to post Share on other sites
Sir stats worthy 0 Posted October 13, 2002 RED!!!!!!!!! Do you think you can give this guy a hand? Share this post Link to post Share on other sites
RED 0 Posted October 13, 2002 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
Rexxenexx 0 Posted October 14, 2002 9--></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (RED @ Oct. 13 2002,119)</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 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
Rexxenexx 0 Posted October 14, 2002 4--></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Sir stats worthy @ Oct. 13 2002,104)</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? Â <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
Rexxenexx 0 Posted October 14, 2002 Thanks Sir and RED!! Â Â 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