Tabletop Simulator

Tabletop Simulator

Not enough ratings
Scripting Example - Roulette
 
Rate  
Favorite
Favorited
Unfavorite
Number of Players: 1, 2, 3, 4, 4+
File Size
Posted
Updated
0.043 MB
Apr 4, 2016 @ 9:35am
Apr 4, 2016 @ 10:04am
2 Change Notes ( view )

Subscribe to download
Scripting Example - Roulette

Subscribed
Unsubscribe
Description
A roulette wheel that spin when you throws the ball onto it that showcases how the new mod scripting works.

API and Scripting documentation can be found on the Berserk Games website: http://berserk-games.com/knowledgebase/scripting/

All feedback and suggestions regarding scripting and the API are welcome and should be posted on our official forums. http://www.berserk-games.com/forums/showthread.php?1869-Scripting-Features-amp-Improvements

Topics covered in this example:
Default events: onload, onCollisionEnter
Coroutines
os.clock()
Rotation
Frame independences

Special thanks to Moneyman12167Casey for letting me use his mod for this scripting example: http://steamcommunity.com/sharedfiles/filedetails/?id=357782491
< >
2 Comments
ellibod Mar 3, 2018 @ 2:34am 
single 0 or double 0?
CrunchyHotDogs Jun 12, 2017 @ 7:57am 
I'm trying to get coroutines to work in a different mod, except they don't seem to be doing anything. Would you be able to take a quick look and help me figure out what's going wrong?