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
can't give Glass_container? Say wut?
SonOfLiberty796 Offline
Senior Member

Posts: 371
Threads: 39
Joined: Aug 2011
Reputation: 2
#2
RE: can't give Glass_container? Say wut?

(05-06-2012, 07:29 PM)beecake Wrote: Yea so all my "giveitem" functions works:


GiveItem("hollow_needle_1", "hollow_needle", "hollow_needle_1", "hollow_needle.tga", 1);


GiveItem("glass_container_mix_done", "glass_container_mix_done", "glass_container_mix_done", "glass_container_mix_done.tga", 1);


GiveItem("chemical_1", "chemical_container", "chemical_1", "chemical_container.tga", 1);


GiveItem("chemical_2", "chemical_container", "chemical_2", "chemical_container.tga", 1);


GiveItem("chemical_roed", "chemical_container_half", "chemical_roed", "chemical_container_half.tga", 1);


GiveItem("chemical_groen", "chemical_container_full", "chemical_groen", "chemical_container_full.tga", 1);

Except for this one:


GiveItem("glass_container", "glass_container", "glass_container", "glass_container.tga", 1);

I have no idea why!! It just won't give me the glass_container! I can't use the giveitemfromfile script, because it doesn't have the SubItemTypeName.

What can i do?
GiveItem("", "glass_container_1", "glass_container", "glass_container.tga", 1);

Try that^ By the way, you don't need the first ""'s because you only use it IF the item is in (internal) the map.

However, if it is in the map (let's say, stored in a chest), then I think you do have to fill the first ""'s
In that case:

GiveItem("glass_container_1", "glass_container_1", "glass_container", "glass_container.tga", 1);

I would try both, though, just in case Smile
(This post was last modified: 05-06-2012, 08:15 PM by SonOfLiberty796.)
05-06-2012, 08:13 PM
Find


Messages In This Thread
RE: can't give Glass_container? Say wut? - by SonOfLiberty796 - 05-06-2012, 08:13 PM



Users browsing this thread: 3 Guest(s)