Page 1 of 1

Does anybody know what ItemConstrainBox does?

Posted: Tue Jan 20, 2015 2:36 am
by MrChoke
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?

Posted: Tue Jan 20, 2015 3:45 am
by minmay
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.

Re: Does anybody know what ItemConstrainBox does?

Posted: Tue Jan 20, 2015 11:28 pm
by MrChoke
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.
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.