# Game Is Debug Option Set

Grammar — Is m true for player player
FlagsNative | Function

Returns true if the specified debug option is true for a given player. Only works in debug builds of the game.

# Arguments

  • string — Debug Option
  • int — Player

Returns — bool

native bool GameIsDebugOptionSet(
	string inOptionName,
	int player,
);

# Supported triggers

Category: Game / Game Settings

# Examples

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:10258

    // Automatic Variable Declarations
    // Implementation
    return GameIsDebugOptionSet((lp_mode), 1);
}

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:14509

    // Automatic Variable Declarations
    // Implementation
    return GameIsDebugOptionSet((lp_mode), 1);
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:107

    // Automatic Variable Declarations
    // Implementation
    return GameIsDebugOptionSet((lp_mode), 1);
}

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:46

bool libComC_gf_CampaignDebugModeIsOn (string lp_mode) {
    // Implementation
    return GameIsDebugOptionSet((lp_mode), 1);
}

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:211

bool libNovC_gf_CampaignDebugModeIsOn (string lp_mode) {
    // Implementation
    return GameIsDebugOptionSet((lp_mode), 1);
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:138

    // Automatic Variable Declarations
    // Implementation
    return GameIsDebugOptionSet((lp_mode), lp_player);
}

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:7443

    // Automatic Variable Declarations
    // Implementation
    return GameIsDebugOptionSet((lp_mode), 1);
}