Console module

Module for interacting with the developer console.

Functions

  • TRX.Console.Log("string1")

    Logs a line to the developer console.

  • TRX.Console.Eval("string"[, opts])

    Evaluates a given string as a developer console command.

    By default, output from commands is silenced and only appears in the terminal and the log file. To see output from the commands normally, pass { verbose = true } in opts.

    Example:

    TRX.Console.Eval("play 1", { verbose = true })
    

    will play the first level and show an according message in the console log.

  • TRX.Console.Clear()

    Clears the console.