getTimeLeft

Platform Compatibility PC Mac OSX Oculus Quest X X X Get the time left in seconds Parameters: name A string value returns a Float (decimal number) value Example: 1obj.getTimeLeft(name)

getPlayerColor

Platform Compatibility PC Mac OSX Oculus Quest X X X Get the player color in R,G,B,A format Example: 1obj.getPlayerColor()

setPlayerColor

Platform Compatibility PC Mac OSX Oculus Quest X X X Set the player color in R,G,B or R,G,B,A format Parameters: color A string value Example: 1obj.setPlayerColor(color)

Player Color Changer

Platform Compatibility PC Mac OSX Oculus Quest X X X Change the color of the player when clicked using setPlayerColor 12345678–Set player to a random color when this is clicked function onClick(type)     r = obj.random(0, 1)     g = obj.random(0, 1)     b = obj.random(0, 1)         obj.setPlayerColor(r … Read more Player Color Changer

loadWebBytes

Platform Compatibility PC Mac OSX Oculus Quest X X X Load bytes as UTF8 text from a web file and store it to a global string once loaded, manually check the string later to ensure it has loaded (if not loaded the value will be emptied) Parameters: filename A string value globalname A string value … Read more loadWebBytes

loadTextWeb

Platform Compatibility PC Mac OSX Oculus Quest X X X Load text from a web file and store it to a global string once loaded, manually check the string later to ensure it has loaded (if not loaded the value will be emptied) Parameters: filename A string value globalname A string value Example: 1obj.loadTextWeb(filename, globalname)

base64ToString

Platform Compatibility PC Mac OSX Oculus Quest X X X Convert base64 values to string Parameters: input A string value returns a String (text) value Example: 1obj.base64ToString(input)

toBase64

Platform Compatibility PC Mac OSX Oculus Quest X X X Convert a string into base64 format Parameters: input A string value returns a String (text) value Example: 1obj.toBase64(input)

getElement

Platform Compatibility PC Mac OSX Oculus Quest X X X Get a single entry from a string array, counting starting from 1 like LUA Parameters: input A string value item Optional An integer value separator Optional A string value returns a String (text) value Example: 1obj.getElement(input, item = 1, separator)

Use Object As Avatar

Platform Compatibility PC Mac OSX Oculus Quest X X – Drop this script on an object to make it replace the player object with itself. Learn more about moveStored for how it places the object directly at the player location. 123456789101112–Position this object to player, hide player, and voila a fake avatar! if obj.firstRun() then … Read more Use Object As Avatar