Home   Help Search Login Register  

Author Topic: Naming the player  (Read 801 times)

0 Members and 1 Guest are viewing this topic.

Javito

  • Guest
Naming the player
« on: 11 Aug 2006, 00:33:45 »
I've played other missions where the player unit is given an assigned name that you see whenever he speaks on the sidechat radio and whatnot. Like in the magnificent Retaliation campaign with Private Ashtakov. Or maybe I'm just remembering things wrong. Is there a way to give the player unit a name or for plot reasons must I refer to him always as "You" or "Sergeant"?  ;D

Offline Pilot

  • Contributing Member
  • **
Re: Naming the player
« Reply #1 on: 11 Aug 2006, 02:17:22 »
Yes, there is a way to name the player.  You will have to create an identity for the player in description.ext.

Give me a few minutes and I'll get some stuff together to show you how to create an identity.

EDIT:
Ok, first you will want to create a new text document and name it description.ext.

To create the identity, copy and paste the following code into your description.ext, and change the parts in bold to get what you want.

Code: [Select]
class CfgIdentities
{
class ClassName
{
name = "Name";
face = "Face00";
glasses = "none";
speaker = "Georgiy";
pitch = 1.00;
};
};

Now, in the unit's Init field, put:
this setIdentity "ClassName"

ClassName is the same ClassName you assigned the unit in description.ext.
name="Name" is the name that you want to appeach in the radio.
face="Face00" is the face you want to assign to the unit.  The faces go from Face00 to Face52.  I thought there was a list of faces with pictures somewhere on OFPEC, but I wasn't able to find it.
glasses="none" determines what kind of glasses the unit has.  Your choices are, IIRC, spectacles, shades, and none
speaker="Georgiy" is the voice you want over the radio.  To try out the different voices, load up OFP and click Player at the main screen.  Edit your current profile, and scroll through the different voices.  When you find a voice you like, type that name into the speaker field.
pitch=1.00 determines the pitch of the voice.  A higher number is a higher pitch, a lower number is a lower pitch.

Hopefully that get's you started.  Good luck with your editing.

-Pilot

EDIT EDIT:
You can't put bold statements in code? ???
« Last Edit: 11 Aug 2006, 02:32:30 by Pilot »