OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Furia on 14 Jan 2003, 17:16:35

Title: Custom Character's names
Post by: Furia on 14 Jan 2003, 17:16:35
I am creating a map when it would be very important to be able to customize the charater names so while on MP set up where players choose their character ie. Alpha red Machinnergunner, he can choose lets say.. ie Smith or LT Smith.
I know how to rename characters but so far I can unly use this "Alpha Red" "Delta Blue" codes.
Any idea of how changing that?
The whole map concept is heavily linked to this solution.
Any help would be most welcome :) Thank you.
Title: Re:Custom Character's names
Post by: CptBravo on 16 Jan 2003, 00:31:08
Hey,

You need to do two things:

a) Create a description.ext  file in your mission's folder and put this in it:

class CfgIdentities
{
Identities[] = {};

class Santa
{
name = "SantaClause";
face = "face12";
glasses = "NONE";
speaker="Adam";
pitch = 1.00;
};
};


Then ..

 b) Add this line in the unit's init line that you want to name:
This setIdentity "SantaClause"

Hope this helps
Title: Re:Custom Character's names
Post by: Sui on 16 Jan 2003, 00:58:02
Careful there, CptBravo  :o

In that example the setidentity call would need to be:

This setIdentity "Santa"

As it needs to be the same as in the class line... eg.

class CfgIdentities
{
Identities[] = {};

class Santa
{
name = "SantaClause";
face = "face12";
glasses = "NONE";
speaker="Adam";
pitch = 1.00;
};
};

;)
Title: Re:Custom Character's names
Post by: CptBravo on 16 Jan 2003, 01:21:44
Opps! you're right!  8)