Home   Help Search Login Register  

Author Topic: Custom Character's names  (Read 711 times)

0 Members and 1 Guest are viewing this topic.

Furia

  • Guest
Custom Character's names
« 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.

CptBravo

  • Guest
Re:Custom Character's names
« Reply #1 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
« Last Edit: 16 Jan 2003, 00:32:24 by CptBravo »

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Custom Character's names
« Reply #2 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;
};
};

;)

CptBravo

  • Guest
Re:Custom Character's names
« Reply #3 on: 16 Jan 2003, 01:21:44 »
Opps! you're right!  8)