Does anybody know what ItemConstrainBox does?
Does anybody know what ItemConstrainBox does?
I am wondering what this component does. Doors have two of them. I can turn them on and off and I can't see any difference. Anybody know?
Re: Does anybody know what ItemConstrainBox does?
Items cannot be dropped on the ground within an ItemConstrainBox. Whenever an item has a model that overlaps spaces an item could be (and isn't already an obstacle), it should have one or more ItemConstrainBoxComponents to prevent dropping items in that space, so that items cannot become hidden under the model. Examples: pedestal, forest_ruins_arch, beach_puzzle_statue.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Re: Does anybody know what ItemConstrainBox does?
Ok, makes sense. Though I don't think it really does anything for Doors. I made a door that does not have these constrain boxes and it behaved the same. However, I made a beach_puzzle_statue and found that without the boxes defined, objects can be dropped into the model and fly through as well.minmay wrote:Items cannot be dropped on the ground within an ItemConstrainBox. Whenever an item has a model that overlaps spaces an item could be (and isn't already an obstacle), it should have one or more ItemConstrainBoxComponents to prevent dropping items in that space, so that items cannot become hidden under the model. Examples: pedestal, forest_ruins_arch, beach_puzzle_statue.