Engine
engine.print
Shared
Prints info on engine's console
Syntax
local status = engine.print(type, ...)For a more human-readable output, consider using engine.iprint instead.
- Basic output — prints raw values to the console with minimal formatting
- Structured data — tables and nested types are not expanded; use
engine.iprintfor a fully readable representation - Recommended usage — reserve
engine.printfor simple values such as strings and numbers; preferengine.iprintwhen inspecting complex or nested data structures
Parameters
| Type | Name | Description |
|---|---|---|
string | type | Log level: • "sbox" - engine & runtime messages • "info" - general information • "warn" - non-critical warnings • "error" - errors and failures |
... | ... | Values to print on console |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, or false on failure |
Examples
local player_name = "Kivi"
local mem_used, mem_total = 847, 1024
local asset_path = "assets/models/Hat_01.fbx"
engine.print("info", "Session started")
engine.print("sbox", "Player joined:", player_name)
engine.print("warn", "Memory usage high:", mem_used, "/", mem_total)
engine.print("error", "Failed to load asset:", asset_path)