setDictBool

Platform Compatibility PC Mac OSX Oculus Quest X X X Add or set a private dictionary bool on self Parameters: key A string value value A boolean value Example: 1obj.setDictBool(key, value)

setDictNumber

Platform Compatibility PC Mac OSX Oculus Quest X X X Add or set a private dictionary float on self Parameters: key A string value for the name of the variable value A float value to store Example: 1obj.setDictNumber(key, value)

setDictString

Platform Compatibility PC Mac OSX Oculus Quest X X X Add or set a private dictionary string on self Parameters: key A string value for the name of the variable value A string value for the variable Example: 1obj.setDictString(key, value)

clearDictBools

Platform Compatibility PC Mac OSX Oculus Quest X X X Clear private dictionary bool on self Example: 1obj.clearDictBools()

clearDictNumbers

Platform Compatibility PC Mac OSX Oculus Quest X X X Clear private dictionary number on self Example: 1obj.clearDictNumbers()

clearDictStrings

Platform Compatibility PC Mac OSX Oculus Quest X X X Clear private dictionary string on self Example: 1obj.clearDictStrings()

getUID

Platform Compatibility PC Mac OSX Oculus Quest X X X obj.getUID(index) returns an integer (whole number) value of the Unique ID (UID) value for the picked object. Putting -1 or obj.self() as the index value instead returns the UID of the object running the script. returns an Integer (whole number) value

setUID

Platform Compatibility PC Mac OSX Oculus Quest X X X obj.setUID(value) accepts an integer (whole number) value that can be used to uniquely identify this object to other scripts. It can also be set in the editor directly, but this command is useful for objects that are copied or otherwise spawned while playing a level.

Livescripting

Platform Compatibility PC Mac OSX Oculus Quest X X – Drop this script on an object to open up its code live while playing a level with the Q key, the E key turns on or off the debug log overlay. 123456789101112131415161718192021openEd = false dBug = false function onFrameTick(dt)     openEd = obj.checkKey("q")   … Read more Livescripting

onDestroy

Platform Compatibility PC Mac OSX Oculus Quest X X X onDestroy triggers when the object is about to be deleted Example: 123function onDestroy()     obj.sendGlobalMessage("I have been destroyed") end