• ORBITER-FORUM will be temporarily closed at 2026-07-23 18:00 UTC while we complete some OF maintenance tasks. The amount of downtime is expected to take up to one hour, but probably less.

Beginning Lua question

dmurley

New member
Joined
Dec 11, 2017
Messages
37
Reaction score
0
Points
0
Location
Hill country (near San Antonio
I found in an example that term.out() is how output is generated to the Lua console. This function is not mentioned anywhere in the documentation for Lua that I have been looking at. Does anyone know where this function is documented? I would like to learn if I can output multiple variables in a formatted string. Thanks.

David
 
Yes, you are right - there doesn't seem to be documentation for this function.
In short, the argument can either be a Lua string (so can be constructed with any Lua string operations for concatenation etc.), or, for convenience, one of a few recognised data types

- vector
- matrix
- boolean
- nil
- table
- user data (i.e. something constructed in C++ and treated by Lua as a black box)
 
Back
Top