Tabletop Simulator

Tabletop Simulator

Not enough ratings
LUASnaps
   
Award
Favorite
Favorited
Unfavorite
Number of Players: 1, 2, 4
Assets: Scripting
File Size
Posted
Updated
40.818 KB
21 Apr, 2018 @ 9:55am
22 Apr, 2018 @ 7:56am
2 Change Notes ( view )

Subscribe to download
LUASnaps

Description
This tool is for programatically creating grids and snap points.
It more or less mimics the built in snap points but gives you the option to automatically create a snap point grid through value input and also reference them later through their GUID with LUA.

The tool is made with assetbundles that mimic the behavior of snap points (by having a snap point on them). Control panel gives you all the controls you should need including interactability and visibility toggles.

tooltip:
ORIGIN - The initial starting point of the grid in X/Y/Z world coordinates.
OFFSET - Step offset per snap point, a value of X:2/Z:-2 will tile by increments of two starting from the top left corner.
AMOUNT - A: Amount of snap points - X: Amount per row - A: 35 X: 7 will give you a 7x5 grid.

Note that the tool doesn't set persistent values, for permanent un-interactability and invisibility between loads you need to set it on load.
5 Comments
SaltyO 25 Apr, 2018 @ 5:29am 
Laconic. Life.
ulia  [author] 25 Apr, 2018 @ 1:01am 
Go ahead.
Conro 24 Apr, 2018 @ 11:30pm 
Would it be okay to use part of your code to dynamically generate coordinates, if proper credit was given?
Phen 23 Apr, 2018 @ 3:43pm 
Would be nice to have decimals in the input fields for origin and offset. Looks like I can input them but short fields cut off decimals
darleth 22 Apr, 2018 @ 5:21am 
Amazing...thanks a lot.