Hello. I have matured a question here. How to write a script that is executed when a certain console command? After running it should send the result of his work in the same console. In general, how to create a new command-line scripting command? A kind of callback to enter anything in the console. Note: in general, not necessarily display the results in the console. Can be anywhere on the screen, if only the player with the command saw the result. Thanks in advance! UPD: As it turned out, create your own console command can not. Is there a callback to enter anything in the console? Then reformulated: how can you at any time execute any script (for example, for debugging purposes)? Where can I display the result of the work (which is a flow of O)? Sorry for the clumsy text: I use a translator. :)