console_commands table reference - Stingray Lua API Reference

console_commands table reference

Description

This type of table is used by the stingray.Application.console_send() function to encapsulate a command that will be sent to the console along with related information.

The type member indicates the kind of command that will be sent, and determines the other members that the table can maintain.

For example, if you want to print a message to the console, your table should contain the following members:

{
type = "message",
level = "warning",        -- "warning" and "error" messages are highlighted in the console; all other values are
-- treated as plain text messages.
system = "Unit",          -- this value is printed in square brackets before the message.
message = "message text"  -- this member contains the text of the message to be printed.
}

Data Members

Use the value message in order to print a text message, warning or error to the console. See the description above for details.