Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Beginner asking for some help.
Kreekakon Offline
Pick a god and pray!

Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation: 124
#26
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

[Image: Tv0YgQb.gif]
Image by BandyGrass
(This post was last modified: 10-19-2013, 01:12 PM by Kreekakon.)
10-19-2013, 01:11 PM
Find


Messages In This Thread
Beginner asking for some help. - by daortir - 09-25-2013, 09:38 PM
RE: Beginner asking for some help. - by daortir - 09-26-2013, 03:50 PM
RE: Beginner asking for some help. - by daortir - 09-26-2013, 06:08 PM
RE: Beginner asking for some help. - by daortir - 09-27-2013, 09:35 PM
RE: Beginner asking for some help. - by daortir - 09-27-2013, 11:44 PM
RE: Beginner asking for some help. - by daortir - 09-30-2013, 10:17 AM
RE: Beginner asking for some help. - by daortir - 09-30-2013, 06:24 PM
RE: Beginner asking for some help. - by Kreekakon - 09-30-2013, 06:38 PM
RE: Beginner asking for some help. - by daortir - 10-06-2013, 07:33 PM
RE: Beginner asking for some help. - by daortir - 10-19-2013, 01:07 PM
RE: Beginner asking for some help. - by Kreekakon - 10-19-2013, 01:11 PM
RE: Beginner asking for some help. - by daortir - 10-19-2013, 01:18 PM
RE: Beginner asking for some help. - by Kreekakon - 10-19-2013, 01:25 PM
RE: Beginner asking for some help. - by daortir - 10-21-2013, 11:39 AM
RE: Beginner asking for some help. - by daortir - 10-21-2013, 06:07 PM
RE: Beginner asking for some help. - by daortir - 10-22-2013, 06:31 PM



Users browsing this thread: 1 Guest(s)