Skip to content

Console

Runs the host's own commands, the same ones as the in-game console (footer plugins > console). They're for measuring and debugging. The list is in src/host/testchannel.hpp.

Run

void Console::Run(const string &in)

Runs a host command on the next frame. Its output goes to the log. Only the plugin manager's console box can use it (host 0.23.4 and newer: other plugins' calls are ignored, and plugins that use it are not accepted in the registry). In a player's game only commands that read run; commands that change the game (moving the ball, time, pausing, calling game functions, engine console commands, key presses) are refused, so nothing can help a run.

Example
// Log the current view target (the camera the game is looking through)
Console::Run("viewtarget");