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" does not stack items?
ehovda321 Offline
Junior Member

Posts: 38
Threads: 22
Joined: Dec 2011
Reputation: 0
#1
"GiveItem" does not stack items?

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!
03-14-2013, 05:53 PM
Find
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
#2
RE: "GiveItem" does not stack items?

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?

03-14-2013, 08:42 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#3
RE: "GiveItem" does not stack items?

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.

Tutorials: From Noob to Pro
03-14-2013, 08:47 PM
Website Find
ingedoom Offline
Member

Posts: 120
Threads: 12
Joined: Feb 2012
Reputation: 0
#4
RE: "GiveItem" does not stack items?

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.

[Image: 23778.png]
03-15-2013, 02:46 PM
Website Find




Users browsing this thread: 2 Guest(s)