ItemConstrainBox

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
RayB
Posts: 140
Joined: Fri Mar 06, 2015 3:45 am

ItemConstrainBox

Post by RayB »

What exactly is the 'ItemConstrainBox' class used for. I have seen it in various definitions but can't quite see what it does.
User avatar
THOM
Posts: 1266
Joined: Wed Nov 20, 2013 11:35 pm
Location: Germany - Cologne
Contact:

Re: ItemConstrainBox

Post by THOM »

If the party moves on a tile with an item on, this item could be pushed forwards to the edge of the tile. If there is a model on that edge (eg. some decoration) the item gets pushed into that model, which looks awful or even worse, makes the item vanish and hard to pick up again.

The ItemConstrainBox draws a box around a model which prevents an item from getting pushed into it.
THOM formaly known as tschrage
_______________________________________________
My MOD (LoG1): Castle Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
Post Reply