User Tools

Site Tools


debug_console

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
debug_console [2022/12/16 16:30] – created justindebug_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's current position.
 +</WRAP>
  
 This feature is a useful way to test the effect of certain functions/parameters before creating a script (for example, the timing/appearance of a light color change) or to troubleshoot an issue by displaying the value of a property at a specific point in time as shown in the example image below. This feature is a useful way to test the effect of certain functions/parameters before creating a script (for example, the timing/appearance of a light color change) or to troubleshoot an issue by displaying the value of a property at a specific point in time as shown in the example image below.
debug_console.txt · Last modified: 2022/12/16 16:33 by justin