# Cheat Used

Grammar — Player p uses type cheat code.
FlagsNative | Event

This event fires when the specified player uses the specified cheat. Use “Cheat Type Used” to get the cheat that was used.

# Arguments

Returns — void

native void TriggerAddEventCheatUsed(
	trigger t,
	int player,
	int inCheat,
);

# Event parameters

Category: Game / Chat And Console

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:8291

void gt_Victory_Init () {
    gt_Victory = TriggerCreate("gt_Victory_Func");
    TriggerAddEventCheatUsed(gt_Victory, c_playerAny, c_gameCheatVictory);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:8317

void gt_Defeat_Init () {
    gt_Defeat = TriggerCreate("gt_Defeat_Func");
    TriggerAddEventCheatUsed(gt_Defeat, c_playerAny, c_gameCheatDefeat);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:17955

void gt_DebugSCENE_Init () {
    gt_DebugSCENE = TriggerCreate("gt_DebugSCENE_Func");
    TriggerAddEventCheatUsed(gt_DebugSCENE, c_playerAny, c_gameCheatScene);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:18464

void gt_Debug_TVNews_Init () {
    gt_Debug_TVNews = TriggerCreate("gt_Debug_TVNews_Func");
    TriggerAddEventCheatUsed(gt_Debug_TVNews, c_playerAny, c_gameCheatTV);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/advancedcommand.sc2map/MapScript.galaxy:792

void gt_CheckforCheating_Init () {
    gt_CheckforCheating = TriggerCreate("gt_CheckforCheating_Func");
    TriggerAddEventCheatUsed(gt_CheckforCheating, c_playerAny, c_gameCheatAny);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:1082

void gt_CheckforCheating_Init () {
    gt_CheckforCheating = TriggerCreate("gt_CheckforCheating_Func");
    TriggerAddEventCheatUsed(gt_CheckforCheating, c_playerAny, c_gameCheatAny);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:2085

void gt_CheckforCheating_Init () {
    gt_CheckforCheating = TriggerCreate("gt_CheckforCheating_Func");
    TriggerAddEventCheatUsed(gt_CheckforCheating, c_playerAny, c_gameCheatAny);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosspsionics.sc2map/MapScript.galaxy:855

void gt_CheckforCheating_Init () {
    gt_CheckforCheating = TriggerCreate("gt_CheckforCheating_Func");
    TriggerAddEventCheatUsed(gt_CheckforCheating, c_playerAny, c_gameCheatAny);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:1171

void gt_CheckforCheating_Init () {
    gt_CheckforCheating = TriggerCreate("gt_CheckforCheating_Func");
    TriggerAddEventCheatUsed(gt_CheckforCheating, c_playerAny, c_gameCheatAny);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/terrancombat.sc2map/MapScript.galaxy:1907

void gt_CheckforCheating_Init () {
    gt_CheckforCheating = TriggerCreate("gt_CheckforCheating_Func");
    TriggerAddEventCheatUsed(gt_CheckforCheating, c_playerAny, c_gameCheatAny);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/terrancovertops.sc2map/MapScript.galaxy:778

void gt_CheckforCheating_Init () {
    gt_CheckforCheating = TriggerCreate("gt_CheckforCheating_Func");
    TriggerAddEventCheatUsed(gt_CheckforCheating, c_playerAny, c_gameCheatAny);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:1991

void gt_CheckforCheating_Init () {
    gt_CheckforCheating = TriggerCreate("gt_CheckforCheating_Func");
    TriggerAddEventCheatUsed(gt_CheckforCheating, c_playerAny, c_gameCheatAny);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zerginfestation.sc2map/MapScript.galaxy:760

void gt_CheckforCheating_Init () {
    gt_CheckforCheating = TriggerCreate("gt_CheckforCheating_Func");
    TriggerAddEventCheatUsed(gt_CheckforCheating, c_playerAny, c_gameCheatAny);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:8291

void gt_Victory_Init () {
    gt_Victory = TriggerCreate("gt_Victory_Func");
    TriggerAddEventCheatUsed(gt_Victory, c_playerAny, c_gameCheatVictory);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:8317

void gt_Defeat_Init () {
    gt_Defeat = TriggerCreate("gt_Defeat_Func");
    TriggerAddEventCheatUsed(gt_Defeat, c_playerAny, c_gameCheatDefeat);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:17955

void gt_DebugSCENE_Init () {
    gt_DebugSCENE = TriggerCreate("gt_DebugSCENE_Func");
    TriggerAddEventCheatUsed(gt_DebugSCENE, c_playerAny, c_gameCheatScene);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:18464

void gt_Debug_TVNews_Init () {
    gt_Debug_TVNews = TriggerCreate("gt_Debug_TVNews_Func");
    TriggerAddEventCheatUsed(gt_Debug_TVNews, c_playerAny, c_gameCheatTV);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/advancedcommand.sc2mapMapScript.galaxy:792

void gt_CheckforCheating_Init () {
    gt_CheckforCheating = TriggerCreate("gt_CheckforCheating_Func");
    TriggerAddEventCheatUsed(gt_CheckforCheating, c_playerAny, c_gameCheatAny);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/economy.sc2mapMapScript.galaxy:1082

void gt_CheckforCheating_Init () {
    gt_CheckforCheating = TriggerCreate("gt_CheckforCheating_Func");
    TriggerAddEventCheatUsed(gt_CheckforCheating, c_playerAny, c_gameCheatAny);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2mapMapScript.galaxy:2085

void gt_CheckforCheating_Init () {
    gt_CheckforCheating = TriggerCreate("gt_CheckforCheating_Func");
    TriggerAddEventCheatUsed(gt_CheckforCheating, c_playerAny, c_gameCheatAny);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosspsionics.sc2mapMapScript.galaxy:855

void gt_CheckforCheating_Init () {
    gt_CheckforCheating = TriggerCreate("gt_CheckforCheating_Func");
    TriggerAddEventCheatUsed(gt_CheckforCheating, c_playerAny, c_gameCheatAny);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/rushdefense.sc2mapMapScript.galaxy:1171

void gt_CheckforCheating_Init () {
    gt_CheckforCheating = TriggerCreate("gt_CheckforCheating_Func");
    TriggerAddEventCheatUsed(gt_CheckforCheating, c_playerAny, c_gameCheatAny);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancombat.sc2mapMapScript.galaxy:1907

void gt_CheckforCheating_Init () {
    gt_CheckforCheating = TriggerCreate("gt_CheckforCheating_Func");
    TriggerAddEventCheatUsed(gt_CheckforCheating, c_playerAny, c_gameCheatAny);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancovertops.sc2mapMapScript.galaxy:778

void gt_CheckforCheating_Init () {
    gt_CheckforCheating = TriggerCreate("gt_CheckforCheating_Func");
    TriggerAddEventCheatUsed(gt_CheckforCheating, c_playerAny, c_gameCheatAny);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zergcombat.sc2mapMapScript.galaxy:1991

void gt_CheckforCheating_Init () {
    gt_CheckforCheating = TriggerCreate("gt_CheckforCheating_Func");
    TriggerAddEventCheatUsed(gt_CheckforCheating, c_playerAny, c_gameCheatAny);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zerginfestation.sc2mapMapScript.galaxy:760

void gt_CheckforCheating_Init () {
    gt_CheckforCheating = TriggerCreate("gt_CheckforCheating_Func");
    TriggerAddEventCheatUsed(gt_CheckforCheating, c_playerAny, c_gameCheatAny);
}

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

void libCamp_gt_TS_CheatUsed_Init () {
    libCamp_gt_TS_CheatUsed = TriggerCreate("libCamp_gt_TS_CheatUsed_Func");
    TriggerAddEventCheatUsed(libCamp_gt_TS_CheatUsed, c_playerAny, c_gameCheatAny);
}

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

void libCamp_gt_TS_DebugPROGRESS_Init () {
    libCamp_gt_TS_DebugPROGRESS = TriggerCreate("libCamp_gt_TS_DebugPROGRESS_Func");
    TriggerAddEventCheatUsed(libCamp_gt_TS_DebugPROGRESS, c_playerAny, c_gameCheatProgress);
}

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

void libCamp_gt_TS_DebugResearchPoint_Init () {
    libCamp_gt_TS_DebugResearchPoint = TriggerCreate("libCamp_gt_TS_DebugResearchPoint_Func");
    TriggerAddEventCheatUsed(libCamp_gt_TS_DebugResearchPoint, c_playerAny, c_gameCheatResearch);
}

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

void libCamp_gt_DebugCREDITS_Init () {
    libCamp_gt_DebugCREDITS = TriggerCreate("libCamp_gt_DebugCREDITS_Func");
    TriggerAddEventCheatUsed(libCamp_gt_DebugCREDITS, c_playerAny, c_gameCheatCredits);
}

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:1723

void gt_ShowMapCheatUsed_Init () {
    gt_ShowMapCheatUsed = TriggerCreate("gt_ShowMapCheatUsed_Func");
    TriggerAddEventCheatUsed(gt_ShowMapCheatUsed, gv_pLAYER_01_USER, c_gameCheatShowmap);
}

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:1264

void gt_ShowMapCheatUsed_Init () {
    gt_ShowMapCheatUsed = TriggerCreate("gt_ShowMapCheatUsed_Func");
    TriggerAddEventCheatUsed(gt_ShowMapCheatUsed, gv_PLAYER_01_USER, c_gameCheatShowmap);
}

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2mapMapScript.galaxy:1723

void gt_ShowMapCheatUsed_Init () {
    gt_ShowMapCheatUsed = TriggerCreate("gt_ShowMapCheatUsed_Func");
    TriggerAddEventCheatUsed(gt_ShowMapCheatUsed, gv_pLAYER_01_USER, c_gameCheatShowmap);
}

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2mapMapScript.galaxy:1264

void gt_ShowMapCheatUsed_Init () {
    gt_ShowMapCheatUsed = TriggerCreate("gt_ShowMapCheatUsed_Func");
    TriggerAddEventCheatUsed(gt_ShowMapCheatUsed, gv_PLAYER_01_USER, c_gameCheatShowmap);
}

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

void libSwaC_gt_ZS_DebugProgress_Init () {
    libSwaC_gt_ZS_DebugProgress = TriggerCreate("libSwaC_gt_ZS_DebugProgress_Func");
    TriggerAddEventCheatUsed(libSwaC_gt_ZS_DebugProgress, c_playerAny, c_gameCheatProgress);
}

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

void libSwaC_gt_ZS_DebugKerriganRetail_Init () {
    libSwaC_gt_ZS_DebugKerriganRetail = TriggerCreate("libSwaC_gt_ZS_DebugKerriganRetail_Func");
    TriggerAddEventCheatUsed(libSwaC_gt_ZS_DebugKerriganRetail, c_playerAny, c_gameCheatResearch);
}

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

void libSwaC_gt_ZS_DebugTechRetail_Init () {
    libSwaC_gt_ZS_DebugTechRetail = TriggerCreate("libSwaC_gt_ZS_DebugTechRetail_Func");
    TriggerAddEventCheatUsed(libSwaC_gt_ZS_DebugTechRetail, c_playerAny, c_gameCheatCredits);
}

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:7316

void lib281DEC45_gt_ZSS_DebugSceneUsed_Init () {
    lib281DEC45_gt_ZSS_DebugSceneUsed = TriggerCreate("lib281DEC45_gt_ZSS_DebugSceneUsed_Func");
    TriggerAddEventCheatUsed(lib281DEC45_gt_ZSS_DebugSceneUsed, c_playerAny, c_gameCheatScene);
}

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:8462

void lib281DEC45_gt_ZSS_DebugKerriganCheatRetail_Init () {
    lib281DEC45_gt_ZSS_DebugKerriganCheatRetail = TriggerCreate("lib281DEC45_gt_ZSS_DebugKerriganCheatRetail_Func");
    TriggerAddEventCheatUsed(lib281DEC45_gt_ZSS_DebugKerriganCheatRetail, c_playerAny, c_gameCheatResearch);
}

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:8502

void lib281DEC45_gt_ZSS_DebugArmyCheatRetail_Init () {
    lib281DEC45_gt_ZSS_DebugArmyCheatRetail = TriggerCreate("lib281DEC45_gt_ZSS_DebugArmyCheatRetail_Func");
    TriggerAddEventCheatUsed(lib281DEC45_gt_ZSS_DebugArmyCheatRetail, c_playerAny, c_gameCheatCredits);
}

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:1746

void gt_PerformanceUnpauseAllCheats_Init () {
    gt_PerformanceUnpauseAllCheats = TriggerCreate("gt_PerformanceUnpauseAllCheats_Func");
    TriggerAddEventCheatUsed(gt_PerformanceUnpauseAllCheats, c_playerAny, c_gameCheatShowmap);
}

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2mapMapScript.galaxy:1746

void gt_PerformanceUnpauseAllCheats_Init () {
    gt_PerformanceUnpauseAllCheats = TriggerCreate("gt_PerformanceUnpauseAllCheats_Func");
    TriggerAddEventCheatUsed(gt_PerformanceUnpauseAllCheats, c_playerAny, c_gameCheatShowmap);
}

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

void libVoiC_gt_PC_DebugProgress_Init () {
    libVoiC_gt_PC_DebugProgress = TriggerCreate("libVoiC_gt_PC_DebugProgress_Func");
    TriggerAddEventCheatUsed(libVoiC_gt_PC_DebugProgress, c_playerAny, c_gameCheatProgress);
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:6328

void libVCMI_gt_PS_GameCheat_CheatUsed_Init () {
    libVCMI_gt_PS_GameCheat_CheatUsed = TriggerCreate("libVCMI_gt_PS_GameCheat_CheatUsed_Func");
    TriggerAddEventCheatUsed(libVCMI_gt_PS_GameCheat_CheatUsed, c_playerAny, c_gameCheatAny);
}

mods/liberty.sc2modbase.sc2data/TriggerLibs/LibertyLib.galaxy:1007

    libLbty_gt_StarCraftEvents = TriggerCreate("libLbty_gt_StarCraftEvents_Func");
    TriggerAddEventMapInit(libLbty_gt_StarCraftEvents);
    TriggerAddEventCheatUsed(libLbty_gt_StarCraftEvents, c_playerAny, c_gameCheatDateTime);
}

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:5265

void libNCMI_gt_NS_GameCheat_CheatUsed_Init () {
    libNCMI_gt_NS_GameCheat_CheatUsed = TriggerCreate("libNCMI_gt_NS_GameCheat_CheatUsed_Func");
    TriggerAddEventCheatUsed(libNCMI_gt_NS_GameCheat_CheatUsed, c_playerAny, c_gameCheatAny);
}

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

void libNovC_gt_NC_DebugProgress_Init () {
    libNovC_gt_NC_DebugProgress = TriggerCreate("libNovC_gt_NC_DebugProgress_Func");
    TriggerAddEventCheatUsed(libNovC_gt_NC_DebugProgress, c_playerAny, c_gameCheatProgress);
}

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova05.sc2map/MapScript.galaxy:4341

void gt_ShowMapCheatUsed_Init () {
    gt_ShowMapCheatUsed = TriggerCreate("gt_ShowMapCheatUsed_Func");
    TriggerAddEventCheatUsed(gt_ShowMapCheatUsed, gv_pLAYER_01_USER, c_gameCheatShowmap);
}

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova05.sc2mapMapScript.galaxy:4341

void gt_ShowMapCheatUsed_Init () {
    gt_ShowMapCheatUsed = TriggerCreate("gt_ShowMapCheatUsed_Func");
    TriggerAddEventCheatUsed(gt_ShowMapCheatUsed, gv_pLAYER_01_USER, c_gameCheatShowmap);
}