Kreekakon
Pick a god and pray!
Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation:
124
|
RE: Beginner asking for some help.
(10-19-2013, 01:07 PM)daortir Wrote: Hello !
Here I am, with a question about custom items. I'd like to know how make a custom item show up in my inventory, and becoming usable. I'm not talking about the ingame model. As an exemple I click on a mushroom which has the ingame model of a sewer fungi, and the player gets an item which would be a mushroom part in his inventory. My question is about the inventory item.
Copy pasta tiem!!
Quote:void GiveItem(string& asName, string& asType, string& asSubTypeName, string& asImageName, float afAmount);
Adds an item to the inventory of the player. Note that the item does not have to exist as entity in the world to be able to do this.
asName - internal name
asType - item to give
asSubTypeName - item name for .lang file
asImageName - For exemple: void GiveItem(string& asName, string& asType, “chemical_container_full”, “chemical_container_full.tga” , float afAmount); The image is from graphics\Item\chemical_container_full.tga : is the image which will appear in Inventory - http://www.img155.imageshack.us/img155/6...806785.jpg
afAmount - amount to give
(This post was last modified: 10-19-2013, 01:12 PM by Kreekakon.)
|
|
10-19-2013, 01:11 PM |
|