RUSTICDOCSSearch documentation

Rustic scripting API

The reference is organized by what game code needs to do. Every operation page includes purpose, timing, variables, return behavior, and equivalent calls for all ten supported script types.

Execution model

Global scripts run before Scene scripts, then Object Component scripts. Mutations are queued and applied after the callback in issue order. Every gameplay language calls built-in functions. Lua, JavaScript, and Web use embedded bindings; external languages use engine-supplied SDKs with private transport.

Language support

LanguagesIntegration
Lua 5.4, JavaScript, HTML / inline JSbundled embedded API
Python, C#, C++, Luau, C, Java, PHPengine-owned SDK and persistent external session

Safety limits

Source and responses are limited to 1 MiB. External callbacks have a three-second deadline. Boundary values are booleans, integers, finite numbers, strings, vectors, and optional stable entity IDs.