Tabletop Simulator

Tabletop Simulator

Not enough ratings
Set Invisible To With Right Click
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
15.594 KB
23 Jun, 2021 @ 7:27am
24 Jun, 2021 @ 1:24pm
2 Change Notes ( view )

Subscribe to download
Set Invisible To With Right Click

Description
This mod is a simple proof of concept of a script that you can copy/paste into your mod.

It simply adds a right click menu where you can set which players can see the object (by default visible to all but the grey color).
24 Comments
Leberecht Reinhold  [author] 17 Jun, 2024 @ 1:15am 
@Squirtle Possible, but it can be tricky.

If that means "a few other objects, within some margin of error", then its fine. That would mean putting the events on object drop/move, checking per frame (both the invisible objects plus the other ones, it has to go both ways) with a sq distance function.

If that means it needs to be exact with a large amount of objects, its going to run into perf issues. Simply put, checking per frame on those situations is going to be very heavy on the host computer, which will result in lag for everyone.
Squirtle 8 Jun, 2024 @ 6:06pm 
how difficult do you think it would be to convert this functionality to be based on proximity to other objects? thank you
Fidel 13 Mar, 2024 @ 4:12pm 
Pardon my ignorance, but what do you mean by "copy/paste into your mod"? I'm not quite sure how I can use this in a game.
rebel16 8 Jul, 2023 @ 12:23am 
This is a great module and almost exactly what I'm looking for! The only change I'd like to see is if it can be set so only the White player (the GM in most of the games I play), or maybe a specifically designated player that isn't Black or Gray, can change the toggles.
Plectros 21 Feb, 2023 @ 9:25am 
This comment is awaiting analysis by our automated content check system. It will be temporarily hidden until we verify that it does not contain harmful content (e.g. links to websites that attempt to steal information).
Leberecht Reinhold  [author] 19 Aug, 2021 @ 12:50pm 
@ilfuoco2000 Could you explaina bit more? I have been trying to reproduce it with the cubes, but the error does not seem to appear in my end.

Does it appear with cubes or only with specfiic objects?
Also, the GM is not grey, but black. Grey is espectator.
ilfuoco2000 17 Aug, 2021 @ 5:44am 
hi ther is a bug that after i change team from the GM (grey) to the other team (any other color) and than when i go back to the GM team all the models with the script of this mod disappear with this error " failed to load custom_model. value cannot be null. parameter name: key <11>" do you know hot to solve this problem? because i rly love this mod but with this bug i can't go on ;( .
stups 1 Jul, 2021 @ 12:23pm 
@Leberecht Reinhold

Thanks!
Leberecht Reinhold  [author] 30 Jun, 2021 @ 9:16am 
@Spooks In the code you can comment some colors on the list if you arent going to use all of them, that reduces the lsit.

@stups I specifically dont want that as this was made for Kriegsspiel where the umpire may need to share screenshots where such thing should not be indicated. However, if you want, it's only adding "obj.setColorTint(Color(255, 255, 255, 128))" to the code in the hide for all but black.
stups 30 Jun, 2021 @ 7:58am 
Hi, great Mod. One small suggestion. If a token is hidden to all except black, could it indicate it's invisible to others players by making it transparent? You could set the tinting color an alpha channel value of lower than 255 to achieve this.