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
GiveItem
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#3
RE: GiveItem

If you use GiveItemFromFile, beware that you won't be able to use that bucket for anything. GiveItemFromFile creates the actual item, but destroys it after, so it won't work if you use it in a AddUseItemCallback. It's mainly used for debugging.

You'll want to use GiveItem. Try this:
GiveItem("wooden_bucket_filled_1", "wooden_bucket_filled.ent", "filled_bucket", "wooden_bucket_filled.tga", 1)

wooden_bucket_filled_1 - internal name (use this name in the AddUseItemCallback function)
wooden_bucket_filled.ent - item to give
filled_bucket - the name for the .lang file
wooden_bucket_filled.tga - the image that shows up in the inventory
1 - amount to give

In Ruins [WIP]
03-25-2013, 05:46 AM
Find


Messages In This Thread
GiveItem - by Cyphermur9t - 03-24-2013, 10:53 PM
RE: GiveItem - by plutomaniac - 03-25-2013, 02:09 AM
RE: GiveItem - by NaxEla - 03-25-2013, 05:46 AM
RE: GiveItem - by plutomaniac - 03-25-2013, 02:17 PM



Users browsing this thread: 1 Guest(s)