Frictional Games Forum (read-only)

Full Version: "GiveItem" does not stack items?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Here is my function:

GiveItem("battery", "item_battery.ent", "battery", "inventory_battery.tga", 1);

The function works, but when the number is ABOVE 1, then the items will not stack- they will appear separately in the inventory. Is there any way to solve this ? Thanks!
Hmm, is there any particular reason you want the player to get them through the script, and not pick them up from in the environment?
Whether picked up or given through a script, they shouldn't stack if they're not of an item type that are designed to stack.
This is not something you can do through your .hps file. You need to snoop around in the .ent file of tinderboxes and eventually open it in model editor. But don't get your hopes up to soon. It shouldn't be easy.. If it's not stricktly neccesary that they stack, then don't let yourself be bothered with it for too long if you can't get it working.