Skip to Content

Global functions

print and color_print: writing text to the game console.


print

print(...)

Writes to the game console in white. Arguments are separated by tabs and a newline is appended. Whole numbers print as integers; other numbers use six significant digits. Tables print as table, Lua functions as undefined, and userdata use __tostring. Text is truncated at the first NUL byte.

Returns: no values.

color_print

color_print(text, color?)

Writes text to the game console with a trailing newline. The default colour is white.

Returns: no values.

On this page