OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Olphy on 24 Jan 2005, 00:25:24

Title: Adding a mission specific name to a character???
Post by: Olphy on 24 Jan 2005, 00:25:24
Hi.

I want to make it so that the character I play has a specific name that shows up on radio messages insted of his normal Flashpoint name.

For example, on the gear screen, it displays the name John Smith insted of your screen name like "l337 sN1pre!11!"

How do I do this? I've inserted:


Code: [Select]
class Smith
         {
            name = "John Smith";
            face = "Peter V.";
            glasses = "none";
            speaker = "Adam";
            pitch = 0.85;
         };

Into my description.ext but when I load the game up my charcter still displays my screen name. What else have I got to do?

Regards.

Bazzer.
Title: Re:Adding a mission specific name to a character???
Post by: Platoon Patton on 24 Jan 2005, 00:40:15
Change l337 sN1pre!11!" in John Smith :)
Title: Re:Adding a mission specific name to a character???
Post by: macguba on 24 Jan 2005, 01:17:01
You need a setIdentity command in the mission somewhere, so the game knows that the character is associated with the stuff in description.ext.

I can't remember the details but I put a working example of this in the Tutorial Mission.   Grab it from the Ed Depot.
Title: Re:Adding a mission specific name to a character???
Post by: nominesine on 24 Jan 2005, 09:36:07
From your example... In the initline of the unit you write :

this setidentity "smith"
Title: Re:Adding a mission specific name to a character???
Post by: Platoon Patton on 24 Jan 2005, 14:06:43
Quote
I want to make it so that the character I play ....

That means he is "player",so name player will return "l337 sN1pre!11!"

I think he simply has to edit his playerprofile.. ???

Title: Re:Adding a mission specific name to a character???
Post by: XCess on 24 Jan 2005, 14:42:17
Nope, nominesine was correct.  ::)
Title: Re:Adding a mission specific name to a character???
Post by: Olphy on 24 Jan 2005, 19:05:08
From your example... In the initline of the unit you write :

this setidentity "smith"

Exactly what I was after, thanks. :)
Title: Re:Adding a mission specific name to a character???
Post by: Olphy on 24 Jan 2005, 19:20:36
Another slight problem boys.

I've entered this but everytime I start the mission up on the briefing I get this message:

"No entry 'Config.bin/CFGWeapons/CFGMusic".

And I still have my original screen name...

Any ideas?

Is there anything out of place with the description that could be causing this?
Title: Re:Adding a mission specific name to a character???
Post by: dmakatra on 24 Jan 2005, 19:56:20
Lemme see the complete description.ext.

:beat: *Gets Shot* :beat:
Title: Re:Adding a mission specific name to a character???
Post by: The-Architect on 24 Jan 2005, 22:21:20
Looks to me like you've asked for a weapon and some music and Flashpoint doesn't have it. Check the names of the music, your weapons and your mags. I think that's what's wrong.
Title: Re:Adding a mission specific name to a character???
Post by: Olphy on 25 Jan 2005, 22:08:01
Lemme see the complete description.ext.

:beat: *Gets Shot* :beat:
Title: Re:Adding a mission specific name to a character???
Post by: nominesine on 26 Jan 2005, 09:36:34
Seems to me you are missing a few headers in the description.ext.

I think it's a

class CfgIdentities

that's missing. Don't trust this wizard programs. Unpbo a mission that works and copy the description from that one instead.