Looking at the scripting reference, the ContainerItem component has getCapacity but no setCapacity function. The capacity of the container is defined by the containerType, which just seems to have "sack" (9 slots) or "chest" (16 slots) as the only options I can find (Defining anything else gives us no slots when the item is opened).
Does anyone have any idea on how to define new containerTypes and the amount of slots they have? For instance, a containeritem with 2 or 4 slots?
Defining new container sizes.
Defining new container sizes.
Writer and sometimes artist of the very slightly acclaimed comic series Scrambled Circuits. A comic series about a robot written by a human.
Grimrock 2 socketSystem: viewtopic.php?f=22&t=8546 / Github
Grimrock 2 socketSystem: viewtopic.php?f=22&t=8546 / Github
- cromcrom
- Posts: 549
- Joined: Tue Sep 11, 2012 7:16 am
- Location: Chateauroux in a socialist s#!$*&% formerly known as "France"
Re: Defining new container sizes.
I would love something like that too 

A trip of a thousand leagues starts with a step.
Re: Defining new container sizes.
Isnt there a pellet ammo box that can be opened the same way a sack/box can?
Labyrinth of Lies (viewtopic.php?f=14&t=4400)
Legacy of Lies (viewtopic.php?f=22&t=12983&hilit=+legacy)
Legacy of Lies (viewtopic.php?f=22&t=12983&hilit=+legacy)
Re: Defining new container sizes.
There is pellet_box, but that is just ammo and not a container. sack has 9 slots and containerType "sack" and wooden_box has 16 with containerType "chest". Those aer all I can find in the editor, at least.akroma222 wrote:Isnt there a pellet ammo box that can be opened the same way a sack/box can?
Writer and sometimes artist of the very slightly acclaimed comic series Scrambled Circuits. A comic series about a robot written by a human.
Grimrock 2 socketSystem: viewtopic.php?f=22&t=8546 / Github
Grimrock 2 socketSystem: viewtopic.php?f=22&t=8546 / Github
Re: Defining new container sizes.
Ahh I see, I know mortar, sack and chest were the only container types in LoG1
And the mortar has been redone so its not really a container like the others now....
And the mortar has been redone so its not really a container like the others now....
Labyrinth of Lies (viewtopic.php?f=14&t=4400)
Legacy of Lies (viewtopic.php?f=22&t=12983&hilit=+legacy)
Legacy of Lies (viewtopic.php?f=22&t=12983&hilit=+legacy)
Re: Defining new container sizes.
Which of course creates its own question. How to create an object like the mortar (like Germanny's toolbox)?akroma222 wrote:Ahh I see, I know mortar, sack and chest were the only container types in LoG1
And the mortar has been redone so its not really a container like the others now....