Make object too big to fit in container (solved)

NecroDeath
22 Mar 2017, 19:57Is it possible to stop an object being put inside a container if it would logically be too big?

NecroDeath
22 Mar 2017, 21:05I've just discovered 'volume' so can solve this now! Sorry.

Anonynn
22 Mar 2017, 21:26I believe you could do it with an if-script and a variable. But I could be mistaken.
On the Container Object, Attributes Tab
if (player.toobig=True) {
msg ("<br/>You simply cannot fit this into your bag! Argh, the humanity! <br/>")
}
And then on the Specific Object, Attributes Tab
ADD
toobig
Boolean - True
Oops...too late! Well, this is an alternative anyway. Hope it works!
Anonynn

NecroDeath
22 Mar 2017, 21:28cheers anonynn! Have gone with the volume solution and a limited container, object value is zero by default, so set limit of 1 on container, then change volume = 1 on any object I don't want the player to fit in the container