Created
October 30, 2025 01:59
-
-
Save BangL/8a6691e936e5be142b570566421f8366 to your computer and use it in GitHub Desktop.
Tabletop Simulator - Doppelpatience
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function onLoad() | |
| spawnDeck({x = 3, y = 2, z = 10}) | |
| spawnDeck({x = -3, y = 2, z = -10}, true) | |
| end | |
| function spawnDeck(pos, isP2) | |
| spawnObject({ | |
| type = "Deck", | |
| position = pos, | |
| callback_function = function(deck) | |
| splitDecks = deck.cut(13) | |
| splitDecks[1].flip() | |
| splitDecks[2].rotate({x=0, y = 90, z=0}) | |
| if not isP2 then | |
| splitDecks[2].setPosition({x = -3, y = 2, z = 10}) | |
| else | |
| splitDecks[2].setPosition({x = 3, y = 2, z = -10}) | |
| end | |
| end | |
| }) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment