(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