# Allow Cheat

Grammarallow|Allow/Disallow cheat cheat
FlagsNative | Action

# Arguments

Returns — void

native void GameCheatAllow(int cheat, bool allow);

Category: Game / Chat And Console

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L744
GameCheatAllow(c_gameCheatVictory, true)
// L4059
GameCheatAllow(c_gameCheatVictory, false)
// L3425
GameCheatAllow(c_gameCheatScene, lv_allowCheat)
// L3426
GameCheatAllow(c_gameCheatTV, lv_allowCheat)
// L3427
GameCheatAllow(c_gameCheatProgress, lv_allowCheat)
// L967
GameCheatAllow(c_gameCheatVictory, false)
// L968
GameCheatAllow(c_gameCheatDefeat, false)
// L1718
GameCheatAllow(c_gameCheatVictory, false)
// L1719
GameCheatAllow(c_gameCheatDefeat, false)
// L1999
GameCheatAllow(c_gameCheatVictory, false)
// L2000
GameCheatAllow(c_gameCheatDefeat, false)
// L2700
GameCheatAllow(c_gameCheatVictory, false)
// L2701
GameCheatAllow(c_gameCheatDefeat, false)
// L4120
GameCheatAllow(c_gameCheatVictory, false)
// L4121
GameCheatAllow(c_gameCheatDefeat, false)
// L157
GameCheatAllow(c_gameCheatVictory, false)
// L184
GameCheatAllow(c_gameCheatVictory, false)
// L482
GameCheatAllow(c_gameCheatVictory, false)
// L246
GameCheatAllow(c_gameCheatVictory, false)
// L303
GameCheatAllow(c_gameCheatVictory, false)
// L446
GameCheatAllow(c_gameCheatVictory, false)
// L158
GameCheatAllow(c_gameCheatVictory, false)
// L492
GameCheatAllow(c_gameCheatVictory, false)
// L156
GameCheatAllow(c_gameCheatVictory, false)
// L744
GameCheatAllow(c_gameCheatVictory, true)
// L4059
GameCheatAllow(c_gameCheatVictory, false)
// L3425
GameCheatAllow(c_gameCheatScene, lv_allowCheat)
// L3426
GameCheatAllow(c_gameCheatTV, lv_allowCheat)
// L3427
GameCheatAllow(c_gameCheatProgress, lv_allowCheat)
// L967
GameCheatAllow(c_gameCheatVictory, false)
// L968
GameCheatAllow(c_gameCheatDefeat, false)
// L1718
GameCheatAllow(c_gameCheatVictory, false)
// L1719
GameCheatAllow(c_gameCheatDefeat, false)
// L1999
GameCheatAllow(c_gameCheatVictory, false)
// L2000
GameCheatAllow(c_gameCheatDefeat, false)
// L2700
GameCheatAllow(c_gameCheatVictory, false)
// L2701
GameCheatAllow(c_gameCheatDefeat, false)
// L4120
GameCheatAllow(c_gameCheatVictory, false)
// L4121
GameCheatAllow(c_gameCheatDefeat, false)
// L157
GameCheatAllow(c_gameCheatVictory, false)
// L184
GameCheatAllow(c_gameCheatVictory, false)
// L482
GameCheatAllow(c_gameCheatVictory, false)
// L246
GameCheatAllow(c_gameCheatVictory, false)
// L303
GameCheatAllow(c_gameCheatVictory, false)
// L446
GameCheatAllow(c_gameCheatVictory, false)
// L158
GameCheatAllow(c_gameCheatVictory, false)
// L492
GameCheatAllow(c_gameCheatVictory, false)
// L156
GameCheatAllow(c_gameCheatVictory, false)

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L8296
GameCheatAllow(c_gameCheatNoVictory, false)
// L8297
GameCheatAllow(c_gameCheatNoDefeat, false)
// L10034
GameCheatAllow(c_gameCheatProgress, false)
// L13358
GameCheatAllow(c_gameCheatProgress, true)
// L13359
GameCheatAllow(c_gameCheatTV, true)
// L13360
GameCheatAllow(c_gameCheatScene, true)
// L13385
GameCheatAllow(c_gameCheatProgress, false)
// L13386
GameCheatAllow(c_gameCheatTV, false)
// L13387
GameCheatAllow(c_gameCheatScene, false)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L12768
GameCheatAllow(c_gameCheatProgress, false)
// L12771
GameCheatAllow(c_gameCheatTechTree, false)
// L12772
GameCheatAllow(c_gameCheatTV, false)
// L14150
GameCheatAllow(c_gameCheatProgress, false)
// L22300
GameCheatAllow(c_gameCheatCredits, false)
// L22301
GameCheatAllow(c_gameCheatResearch, false)
// L22302
GameCheatAllow(c_gameCheatProgress, false)
// L22308
GameCheatAllow(c_gameCheatCredits, true)
// L22309
GameCheatAllow(c_gameCheatResearch, true)
// L22310
GameCheatAllow(c_gameCheatProgress, true)

# campaigns/swarmstoryutil.sc2mod

Lib281DEC45.galaxy

// L3144
GameCheatAllow(c_gameCheatProgress, false)
// L3145
GameCheatAllow(c_gameCheatScene, false)
// L3146
GameCheatAllow(c_gameCheatCredits, false)
// L3147
GameCheatAllow(c_gameCheatResearch, false)
// L3152
GameCheatAllow(c_gameCheatProgress, true)
// L3153
GameCheatAllow(c_gameCheatScene, true)
// L3154
GameCheatAllow(c_gameCheatCredits, true)
// L3155
GameCheatAllow(c_gameCheatResearch, true)

# campaigns/void.sc2campaign

MapScript.galaxy

// L2449
GameCheatAllow(c_gameCheatVictory, false)
// L2450
GameCheatAllow(c_gameCheatDefeat, false)
// L1196
GameCheatAllow(c_gameCheatProgress, true)
// L1197
GameCheatAllow(c_gameCheatScene, true)
// L1198
GameCheatAllow(c_gameCheatCredits, true)
// L1199
GameCheatAllow(c_gameCheatResearch, true)
// L1222
GameCheatAllow(c_gameCheatProgress, true)
// L1223
GameCheatAllow(c_gameCheatScene, true)
// L1224
GameCheatAllow(c_gameCheatCredits, true)
// L1225
GameCheatAllow(c_gameCheatResearch, true)
// L1250
GameCheatAllow(c_gameCheatProgress, true)
// L1251
GameCheatAllow(c_gameCheatScene, true)
// L2449
GameCheatAllow(c_gameCheatVictory, false)
// L2450
GameCheatAllow(c_gameCheatDefeat, false)
// L1196
GameCheatAllow(c_gameCheatProgress, true)
// L1197
GameCheatAllow(c_gameCheatScene, true)
// L1198
GameCheatAllow(c_gameCheatCredits, true)
// L1199
GameCheatAllow(c_gameCheatResearch, true)
// L1222
GameCheatAllow(c_gameCheatProgress, true)
// L1223
GameCheatAllow(c_gameCheatScene, true)
// L1224
GameCheatAllow(c_gameCheatCredits, true)
// L1225
GameCheatAllow(c_gameCheatResearch, true)
// L1250
GameCheatAllow(c_gameCheatProgress, true)
// L1251
GameCheatAllow(c_gameCheatScene, true)

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L6519
GameCheatAllow(c_gameCheatProgress, false)