Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- scripts to flip the top card of a deck when it is removed from a bag
- -- object version
- -- code to be placed on a deck
- function onLoad()
- Wait.condition(function() flipTop() end, function() return self.resting end)
- end
- function flipTop()
- local pos = self.getPosition()
- self.takeObject({ position = { pos.x, pos.y + 2, pos.z}, flip = true })
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement