Skip to content

Instantly share code, notes, and snippets.

@BangL
Created October 30, 2025 01:59
Show Gist options
  • Save BangL/8a6691e936e5be142b570566421f8366 to your computer and use it in GitHub Desktop.
Save BangL/8a6691e936e5be142b570566421f8366 to your computer and use it in GitHub Desktop.
Tabletop Simulator - Doppelpatience
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