DevPortal

Category: Uncategorized

HTTP API: JSON support and set_parcel_info command

Making SmartBots comfortable for developers is one of our primary targets. Our bots are developing, new features are being added. We are glad to release the very important update to SmartBots API. JSON support We’ve reworked all HTTP API commands to return a more convenient response – JSON (this is optional update, all existing LSL scripts will keep working!).…

Persistent variables using localStorage

In a browser, JavaScript scripts can store persistent data (the data which survives page reload) using a localStorage mechanism. We’ve added the similar functionality to the Bots Playground: localStorage.set() and localStorage.get() functions. These two functions store and retrieve values to/from a persistent storage: var controlling_avatar = localStorage.get(“my_master”); … if(new_master) { controlling_avatar = new_master; // We…