debug_mode

Tells you if the game is running in debug mode or not.

Syntax:

debug_mode


Returns: Boolean


Description

This read only variable returns true when the game is being played in debug mode and false when being played as normal.


Example:

if debug_mode
   {
   ini_open("Cheats.ini");
   }
else
   {
   ini_open("Game.ini");
   }

The above code opens a different ini file depending on the value of the read-only variable debug_mode.


Back: Debugging
Next: get_integer
© Copyright YoYo Games Ltd. 2018 All Rights Reserved