Tabletop Simulator

Tabletop Simulator

Not enough ratings
Terrain Locker / Unlocker
   
Award
Favorite
Favorited
Unfavorite
Assets: Scripting
File Size
Posted
Updated
8.542 KB
24 Jul, 2017 @ 6:15am
25 Jul, 2017 @ 7:59am
2 Change Notes ( view )

Subscribe to download
Terrain Locker / Unlocker

Description
A simple little tool to lock and unlock pieces across the table.

As much as I love creating environments from the various piece packs that people have unloaded, the clean-up afterwards is kind of frustrating. The trouble is it’s easy to lock multiple pieces at once, letting you lock the terrain in place. However, as there’s no way to mass-unlock pieces, that part must be done piece by piece. There are ways around it, naturally, but I figured I’d just make a simple tool to help. Just import it into the current game; there’s no global script, so there shouldn’t be any incompatibilities.

Select a group of objects and click Add to add them to the current list. Click Lock or Unlock lock/unlock the pieces you’ve previously set (Duh). Click Clear to erase the current list of objects and start over. You’ll need to click Clear twice to confirm, to prevent accidents.


Update: 25/7/17

The tool now makes objects non-interactable as well as locking them. Please note that after some experimentation I realised the tool is completely incompatible with objects that have multiple states. If you lock an object in one state, you cannot change the state until it's unlocked. On the other hand, if you change the state of an object, it changes the guid of the object, and it removes it from the Locker's list. It's theoretically fixable, but I have no idea how to go about doing so.
13 Comments
Cheddar 4 Dec, 2018 @ 8:27pm 
that would be awesome... one thing i noticed though is when i do an addative load.. i have to reset everything... if it had delete function might be worth it but as stands it doesnt help with my case. but if you want to seee my set up closer and what im doing let me know and maybe you can help. thanks
Paradukes  [author] 3 Dec, 2018 @ 2:53pm 
@bringitonwimps I think that would be beyond the scope of this thing; what you're really after is a kind of specialised nuke. I can take a look at the script for this thing and see about creating something else that would do the job.
Cheddar 30 Nov, 2018 @ 4:25pm 
hey there, so i have a question/request. Can this be set up so the "clear" function actually deletes the iutems. or maybe another button. i want to be able to bring in a table for a rpg, then when table is done one button delete it all so that the table removes eactly the assets i brought in and doesnt effec my players stuff.
handofbobb 6 May, 2018 @ 5:28pm 
so, I was using this tool today, and it has somehow made itself completely unselectible. I would say un-interactible, but the buttons still appear and make clicky sounds, but I can't right click on the tile anymore, so I'm stuck with it in the middle of my map...
Paradukes  [author] 6 Aug, 2017 @ 3:27am 
If I understand you Heyzel, you mean you want to have the objects remain even after saving or reloading the game? Before you lock the objects, you can right-click the objects and select "Persistent" from the toggles menu. Fair warning though, if the locker gets erased, I don't think there's a way to unlock the objects.
Heyzel 5 Aug, 2017 @ 3:38am 
Can I make objects permanently locked , save and Loading etc.?
Paradukes  [author] 25 Jul, 2017 @ 8:02am 
Okay, it now makes objects non-interactable as well as locking them. As I stated in the description though, it won't work with any objects that have multiple states. No idea how to go about fixing that.
Baryonyx 25 Jul, 2017 @ 7:04am 
A simple tool to make objects non-interactable would be nice in my opinion.
Paradukes  [author] 25 Jul, 2017 @ 5:07am 
I had no idea, Baryonyx. I should have known there was a way :P
Thanks for that; it's probably a good deal easier than messing around with the tool.

That being said, I could change this to make objects non-interactable. That means there's no way to even unlock them manually. It might cause probems with state changing, but I'll have to see.
DonnieLove 25 Jul, 2017 @ 3:22am 
I actually didn't know. +1 internet for everybody!