Tabletop Simulator
The Kraken Table
Using the drawer under a custom object (table)
I currently only use the drawers on my table but I have one problem with it. I did an extension on my table with a regular wooden plate and now I want to put your drawer under that plate.

The problem I face is that if the drawer is unter that plate, the content on the drawer will not be in it. Like the drawer is open and I put a counter on there. When closing the drawer, the drawer will close but the counter will just fall down because the drawer is not there anymore. Strangly after that the drawer wont work anymore and I have to spawn in a new one.

Can I somehow change the script so that my wooden plate will be excepted in the logic of the drawer?
< >
Показані коментарі 11 із 1
Lily  [розробник] 1 серп. 2022 о 6:49 
The drawers on the Kraken are quite hard scripted and not very modular, tweaking them can be a little complicated.

It's a little difficult to fully picture the problem you're running into, but I think I get the gist of it. With that in mind; open all drawers, make a new save and then load that save. This is so that all the script tweaks are properly saved to the drawers.

Next, edit the scripts on each one and replace line #103:
if v != self then
With:
if v != self and not v.hasTag( "IGNORE" ) then

Using Tabletop Simulator's tag feature, you may now create an "IGNORE" tag and add it to items you don't want to be stored by the drawers.

If you have rotated the drawers or changed their height, you may also need to tweak the first couple of lines:

local BB = { Min = { x = -16.0, y = 41.99, z = -50.0 }, Max = { x = 16.0, y = 41.99, z = -32.0 } }

Then swap the X and Z values around for a 90 degree rotation, and adjust the Y axis accordingly if you've changed the height.
< >
Показані коментарі 11 із 1
На сторінку: 1530 50