# Cheat Used
Grammar — Player p uses type cheat code.
Flags —Native
|Event
This event fires when the specified player uses the specified cheat. Use “Cheat Type Used” to get the cheat that was used.
# Arguments
int
— Playerint
<preset::GameCheatType> — Type
Returns — void
native void TriggerAddEventCheatUsed(
trigger t,
int player,
int inCheat,
);
# Event parameters
- Cheat Type Used — EventCheatUsed
- Player Ping Unit — EventPingUnit
- Player Ping Unit Type — EventPingUnitType
- Player Ping Unit ControlPlayer — EventPingUnitControlPlayer
- Player Ping Unit UpkeepPlayer — EventPingUnitUpkeepPlayer
- Player Ping Unit Position — EventPingUnitPosition
- Player Ping Location — EventPingPoint
- Player Ping Is From Minimap — EventPingedMinimap
- Player Ping Option — EventPingOption
# Related
Category: Game / Chat And Console
- Chat Message —
void
— TriggerAddEventChatMessage - Cheat Used —
void
— TriggerAddEventCheatUsed - Chat String —
string
— EventChatMessage - Cheat Type Used —
int
<preset::GameCheatType> — EventCheatUsed - Console Command —
bool
— ConsoleCommand - Cheats Enabled —
bool
— GameCheatsEnabled - Allow Cheat —
void
— GameCheatAllow
# Examples
campaigns/liberty.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2map — MapScript.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.sc2map — MapScript.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.sc2map — MapScript.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.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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/libertystory.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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/swarmstory.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2campaign — base.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.sc2map — MapScript.galaxy:1746
void gt_PerformanceUnpauseAllCheats_Init () {
gt_PerformanceUnpauseAllCheats = TriggerCreate("gt_PerformanceUnpauseAllCheats_Func");
TriggerAddEventCheatUsed(gt_PerformanceUnpauseAllCheats, c_playerAny, c_gameCheatShowmap);
}
campaigns/voidstory.sc2campaign — base.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.sc2campaign — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base2.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.sc2map — MapScript.galaxy:4341
void gt_ShowMapCheatUsed_Init () {
gt_ShowMapCheatUsed = TriggerCreate("gt_ShowMapCheatUsed_Func");
TriggerAddEventCheatUsed(gt_ShowMapCheatUsed, gv_pLAYER_01_USER, c_gameCheatShowmap);
}