Vital.sandbox
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.iprint for a fully readable representation
  • Recommended usage — reserve engine.print for simple values such as strings and numbers; prefer engine.iprint when inspecting complex or nested data structures

Parameters

TypeNameDescription
stringtypeLog level:
"sbox" - engine & runtime messages
"info" - general information
"warn" - non-critical warnings
"error" - errors and failures
......Values to print on console

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Print messages at each log level
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)

On this page