Author Topic: Renaming a gun in a pack  (Read 713 times)

So, I wanted to rename Bushi's battle rifle to something else, i asked in his topic but everyone didnt bother.
So, do i rename all the things with battle_riffle.FILEHERE to NOUN.FILEHERE?

Rykuta knows how to do this.

nameItem.uiName = "NEW NAME";

nameItem.uiName = "NEW NAME";

I always have trouble with some things.

For the uiname, do i put
Battlerifle
Battle rifle
or battle_rifle

I always have trouble with some things.

For the uiname, do i put
Battlerifle
Battle rifle
or battle_rifle
Whatever you want to see from the wrench menu.

Code: [Select]
//////////
// item //
//////////
datablock ItemData(M16Item)
{
category = "Weapon";  // Mission editor category
className = "Weapon"; // For inventory system

// Basic Item Properties
shapeFile = "./M16.dts";
rotate = false;
mass = 1;
density = 0.2;
elasticity = 0.2;
friction = 0.6;
emap = true;

//gui stuff
[b]uiName = "M16";[/b]
iconName = "./UI_M16";
doColorShift = true;
colorShiftColor = "0.4 0.4 0.3 1.000";

// Dynamic properties defined by the scripts
image = M16Image;
canDrop = true;

maxAmmo = 25;
canReload = 1;
};
I took this, from the new weapon I am making.

Whatever you want to see from the wrench menu.

One more question:
So for uiname i put NOUNHERE, and what about new name? same thing?

I mean, for uiname i put the name i want?

 and what about new name? same thing?

Oops..

You cannot bold something in a code.

Well It's this..

uiName = "M16";

Rename this.


gaaah im confused.

Whats a console command to rename
Battle Rifle
To AEK?