This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
debug_console [2022/12/16 16:30] – created justin | debug_console [2022/12/16 16:33] (current) – justin | ||
---|---|---|---|
Line 3: | Line 3: | ||
The **debug console** is a tool that allows you to run scripts in-game for testing and debugging scenarios. It is enabled by default but can be disabled from the [[Game Configuration]]. When enabled, you can press the tilde key (~) to bring up the console while playing your game. To use the console, simply enter a script into the text box and press enter to trigger it. See [[Scripting Reference]] for more information about the functions that are currently available. | The **debug console** is a tool that allows you to run scripts in-game for testing and debugging scenarios. It is enabled by default but can be disabled from the [[Game Configuration]]. When enabled, you can press the tilde key (~) to bring up the console while playing your game. To use the console, simply enter a script into the text box and press enter to trigger it. See [[Scripting Reference]] for more information about the functions that are currently available. | ||
+ | |||
+ | <WRAP center round info 100%> | ||
+ | When running a [[script]] from the debug console, the **self** built-in variable will contain the [[entity]] located at the mouse cursor' | ||
+ | </ | ||
This feature is a useful way to test the effect of certain functions/ | This feature is a useful way to test the effect of certain functions/ |