General Functions

Function Description
dio.events.addListener (eventType, callbackFunction) Adds the callbackFunction as a listener for the event specified.
dio.world.getPlayerNames () Returns an array containing the names of the players in the current world. The first element in the array is always the name of the client player.

Render Functions

Function Description
dio.drawing.createRenderToTexture (width, height) Returns a new render texture with the specified width and height.
dio.drawing.setRenderToTexture (renderTexture) Sets the current render texture to the specified render texture.
dio.drawing.addRenderPassBefore (priority, function) Sets a function that is called every render loop. The standard is to use the function to render to a texture.
dio.drawing.addRenderPassAfter (priority, function) Sets a function that is called every render loop after the RenderPassBefore functions. The standard is to use the function to render the a texture to the screen.
dio.drawing.font.drawString(x, y, text, hexColour) Draws the specified text at the x and y position with the colour given.
dio.drawing.font.drawBox (x, y, width, height, hexColour) Draws a box at the x and y position with the given width, height and colour.
dio.drawing.drawTexture (renderTexture, x, y, width, height, hexColor) Draws the renderTexture at the x and y position with the given width, height and colour?

Player Functions

Server Functions

Twitch | Twitter