The easiest way to make "magical" container
Posted: Wed Nov 24, 2021 1:54 pm
I apologize if this has already been discussed somewhere, I did not find such information on the forums.
To prevent the container from taking into account the weight of its content, you just need to give a custom name to the ContainerItem component. Like this:
And that's it, the game will not recalculate it's weight. Be careful though if you already have such non-empty containers on the map, because the editor will generate an error when trying to initialize them.
To be honest, I have not tried to achieve this effect, quite the opposite, one of my custom containers "broke", and I tried to figure out the root of this bug for quite a some time
To prevent the container from taking into account the weight of its content, you just need to give a custom name to the ContainerItem component. Like this:
Code: Select all
class = "ContainerItem",
name = "sack",To be honest, I have not tried to achieve this effect, quite the opposite, one of my custom containers "broke", and I tried to figure out the root of this bug for quite a some time