# Activate/Deactivate Bullies In Region

Grammaractivate|Activate/Deactivate bullies in region region for player player
FlagsNative | Action

If bullies are deactivated for a region, then that player will no longer rebuild bullies that were placed in that region.

# Arguments

Returns — void

native void AIToggleBulliesInRegion(
	int player,
	region reg,
	bool activate,
);

Category: AI / Bullies / Actions

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L1059
AIToggleBulliesInRegion(gv_pLAYER_03_INFESTED_REFUGEES, RegionEntireMap(), false)
// L2404
AIToggleBulliesInRegion(gv_pLAYER_03_INFESTED_REFUGEES, RegionFromId(9), false)
// L2413
AIToggleBulliesInRegion(gv_pLAYER_03_INFESTED_REFUGEES, RegionFromId(10), false)
// L2422
AIToggleBulliesInRegion(gv_pLAYER_03_INFESTED_REFUGEES, RegionFromId(28), false)
// L2432
AIToggleBulliesInRegion(gv_pLAYER_03_INFESTED_REFUGEES, RegionFromId(11), false)
// L2441
AIToggleBulliesInRegion(gv_pLAYER_03_INFESTED_REFUGEES, RegionFromId(12), false)
// L2450
AIToggleBulliesInRegion(gv_pLAYER_03_INFESTED_REFUGEES, RegionFromId(39), false)
// L2459
AIToggleBulliesInRegion(gv_pLAYER_03_INFESTED_REFUGEES, RegionFromId(1), false)
// L2468
AIToggleBulliesInRegion(gv_pLAYER_03_INFESTED_REFUGEES, RegionFromId(22), false)
// L2477
AIToggleBulliesInRegion(gv_pLAYER_03_INFESTED_REFUGEES, RegionFromId(13), false)
// L1065
AIToggleBulliesInRegion(gv_pLAYER02_PROTOSS, RegionFromId(20), false)
// L1071
AIToggleBulliesInRegion(gv_pLAYER02_PROTOSS, RegionFromId(19), false)
// L1077
AIToggleBulliesInRegion(gv_pLAYER02_PROTOSS, RegionFromId(7), false)
// L4277
AIToggleBulliesInRegion(gv_pLAYER_02_DOMINION, RegionFromId(6), true)
// L4278
AIToggleBulliesInRegion(gv_pLAYER_03_DOMINION, RegionFromId(1), true)
// L4279
AIToggleBulliesInRegion(gv_pLAYER_04_DOMINION, RegionFromId(1), true)
// L4956
AIToggleBulliesInRegion(UnitGetOwner(EventUnit()), RegionCircle(UnitGetPosition(EventUnit()), 8.0), false)
// L5078
AIToggleBulliesInRegion(gv_p02_ORLAN_ENEMY, RegionEntireMap(), false)
// L2393
AIToggleBulliesInRegion(gv_p07_HORNERBASE, RegionFromId(18), true)
// L2395
AIToggleBulliesInRegion(gv_p07_HORNERBASE, RegionFromId(43), false)
// L4384
AIToggleBulliesInRegion(gv_p02_DOMINION_INFANTRY, RegionFromId(25), true)
// L735
AIToggleBulliesInRegion(gv_pLAYER02_ZERG, RegionFromId(65), false)
// L736
AIToggleBulliesInRegion(gv_pLAYER03_ZERG, RegionFromId(65), false)
// L737
AIToggleBulliesInRegion(gv_pLAYER04_ZERG, RegionFromId(65), false)
// L738
AIToggleBulliesInRegion(gv_pLAYER02_ZERG, RegionFromId(66), false)
// L739
AIToggleBulliesInRegion(gv_pLAYER03_ZERG, RegionFromId(66), false)
// L740
AIToggleBulliesInRegion(gv_pLAYER04_ZERG, RegionFromId(66), false)
// L741
AIToggleBulliesInRegion(gv_pLAYER02_ZERG, RegionFromId(67), false)
// L742
AIToggleBulliesInRegion(gv_pLAYER03_ZERG, RegionFromId(67), false)
// L743
AIToggleBulliesInRegion(gv_pLAYER04_ZERG, RegionFromId(67), false)
// L1335
AIToggleBulliesInRegion(gv_pLAYER02_ZERG, RegionFromId(65), true)
// L3035
AIToggleBulliesInRegion(gv_p8_ALLIED_PINK, RegionFromId(5), true)
// L3148
AIToggleBulliesInRegion(gv_p9_ALLIED_GREEN, RegionFromId(6), true)
// L3228
AIToggleBulliesInRegion(gv_p2_RAYNOR_LIGHTBLUE, RegionFromId(12), true)
// L3659
AIToggleBulliesInRegion(gv_p3_DOMINION_RED, RegionFromId(54), true)
// L3660
AIToggleBulliesInRegion(gv_p3_DOMINION_RED, RegionFromId(53), true)
// L3631
AIToggleBulliesInRegion(gv_p2_ZERG, RegionCircle(UnitGetPosition(gv_artifact), 16.0), false)
// L3635
AIToggleBulliesInRegion(gv_p2_ZERG, RegionCircle(UnitGetPosition(gv_artifact), 16.0), true)
// L1479
AIToggleBulliesInRegion(gv_p05_ZERG_BASE, RegionFromId(12), false)
// L1546
AIToggleBulliesInRegion(gv_p05_ZERG_BASE, RegionFromId(12), true)
// L1312
AIToggleBulliesInRegion(gv_pLAYER03_PROTOSS, RegionFromId(2), false)
// L1659
AIToggleBulliesInRegion(gv_pLAYER03_PROTOSS, RegionFromId(2), true)
// L1871
AIToggleBulliesInRegion(gv_pLAYER04_PROTOSS, RegionFromId(6), false)
// L3570
AIToggleBulliesInRegion(gv_pLAYER_03_HighTOSS, RegionFromId(24), true)
// L3571
AIToggleBulliesInRegion(gv_pLAYER_04_DarkTOSS, RegionFromId(30), true)
// L5286
AIToggleBulliesInRegion(gv_pLAYER_02_ScriptedTOSS, RegionFromId(3), false)
// L5987
AIToggleBulliesInRegion(gv_p05_ZERG_ORANGE_NW, RegionFromId(18), true)
// L6034
AIToggleBulliesInRegion(gv_p02_ZERG_PURPLE_NE, RegionFromId(18), true)
// L6085
AIToggleBulliesInRegion(gv_p06_ZERG_GREEN_SW, RegionFromId(18), true)
// L4044
AIToggleBulliesInRegion(gv_pLAYER_ZERG_EAST, RegionFromId(34), true)
// L4095
AIToggleBulliesInRegion(gv_pLAYER_ZERG_MAIN, RegionFromId(36), true)
// L4146
AIToggleBulliesInRegion(gv_pLAYER_ZERG_SOUTH, RegionFromId(35), true)
// L825
AIToggleBulliesInRegion(gv_p3_ENEMY_PROTOSS, RegionFromId(1), true)
// L827
AIToggleBulliesInRegion(gv_p3_ENEMY_PROTOSS, RegionFromId(11), true)
// L829
AIToggleBulliesInRegion(gv_p3_ENEMY_PROTOSS, RegionFromId(7), true)
// L831
AIToggleBulliesInRegion(gv_p3_ENEMY_PROTOSS, RegionFromId(12), true)
// L833
AIToggleBulliesInRegion(gv_p3_ENEMY_PROTOSS, RegionFromId(9), true)
// L1389
AIToggleBulliesInRegion(gv_p3_ENEMY_PROTOSS, RegionFromId(1), false)
// L1390
AIToggleBulliesInRegion(gv_p3_ENEMY_PROTOSS, RegionFromId(4), false)
// L1391
AIToggleBulliesInRegion(gv_p3_ENEMY_PROTOSS, RegionFromId(7), false)
// L1392
AIToggleBulliesInRegion(gv_p3_ENEMY_PROTOSS, RegionFromId(9), false)
// L1393
AIToggleBulliesInRegion(gv_p3_ENEMY_PROTOSS, RegionFromId(10), false)
// L1059
AIToggleBulliesInRegion(gv_pLAYER_03_INFESTED_REFUGEES, RegionEntireMap(), false)
// L2404
AIToggleBulliesInRegion(gv_pLAYER_03_INFESTED_REFUGEES, RegionFromId(9), false)
// L2413
AIToggleBulliesInRegion(gv_pLAYER_03_INFESTED_REFUGEES, RegionFromId(10), false)
// L2422
AIToggleBulliesInRegion(gv_pLAYER_03_INFESTED_REFUGEES, RegionFromId(28), false)
// L2432
AIToggleBulliesInRegion(gv_pLAYER_03_INFESTED_REFUGEES, RegionFromId(11), false)
// L2441
AIToggleBulliesInRegion(gv_pLAYER_03_INFESTED_REFUGEES, RegionFromId(12), false)
// L2450
AIToggleBulliesInRegion(gv_pLAYER_03_INFESTED_REFUGEES, RegionFromId(39), false)
// L2459
AIToggleBulliesInRegion(gv_pLAYER_03_INFESTED_REFUGEES, RegionFromId(1), false)
// L2468
AIToggleBulliesInRegion(gv_pLAYER_03_INFESTED_REFUGEES, RegionFromId(22), false)
// L2477
AIToggleBulliesInRegion(gv_pLAYER_03_INFESTED_REFUGEES, RegionFromId(13), false)
// L1065
AIToggleBulliesInRegion(gv_pLAYER02_PROTOSS, RegionFromId(20), false)
// L1071
AIToggleBulliesInRegion(gv_pLAYER02_PROTOSS, RegionFromId(19), false)
// L1077
AIToggleBulliesInRegion(gv_pLAYER02_PROTOSS, RegionFromId(7), false)
// L4277
AIToggleBulliesInRegion(gv_pLAYER_02_DOMINION, RegionFromId(6), true)
// L4278
AIToggleBulliesInRegion(gv_pLAYER_03_DOMINION, RegionFromId(1), true)
// L4279
AIToggleBulliesInRegion(gv_pLAYER_04_DOMINION, RegionFromId(1), true)
// L4956
AIToggleBulliesInRegion(UnitGetOwner(EventUnit()), RegionCircle(UnitGetPosition(EventUnit()), 8.0), false)
// L5078
AIToggleBulliesInRegion(gv_p02_ORLAN_ENEMY, RegionEntireMap(), false)
// L2393
AIToggleBulliesInRegion(gv_p07_HORNERBASE, RegionFromId(18), true)
// L2395
AIToggleBulliesInRegion(gv_p07_HORNERBASE, RegionFromId(43), false)
// L4384
AIToggleBulliesInRegion(gv_p02_DOMINION_INFANTRY, RegionFromId(25), true)
// L735
AIToggleBulliesInRegion(gv_pLAYER02_ZERG, RegionFromId(65), false)
// L736
AIToggleBulliesInRegion(gv_pLAYER03_ZERG, RegionFromId(65), false)
// L737
AIToggleBulliesInRegion(gv_pLAYER04_ZERG, RegionFromId(65), false)
// L738
AIToggleBulliesInRegion(gv_pLAYER02_ZERG, RegionFromId(66), false)
// L739
AIToggleBulliesInRegion(gv_pLAYER03_ZERG, RegionFromId(66), false)
// L740
AIToggleBulliesInRegion(gv_pLAYER04_ZERG, RegionFromId(66), false)
// L741
AIToggleBulliesInRegion(gv_pLAYER02_ZERG, RegionFromId(67), false)
// L742
AIToggleBulliesInRegion(gv_pLAYER03_ZERG, RegionFromId(67), false)
// L743
AIToggleBulliesInRegion(gv_pLAYER04_ZERG, RegionFromId(67), false)
// L1335
AIToggleBulliesInRegion(gv_pLAYER02_ZERG, RegionFromId(65), true)
// L3035
AIToggleBulliesInRegion(gv_p8_ALLIED_PINK, RegionFromId(5), true)
// L3148
AIToggleBulliesInRegion(gv_p9_ALLIED_GREEN, RegionFromId(6), true)
// L3228
AIToggleBulliesInRegion(gv_p2_RAYNOR_LIGHTBLUE, RegionFromId(12), true)
// L3659
AIToggleBulliesInRegion(gv_p3_DOMINION_RED, RegionFromId(54), true)
// L3660
AIToggleBulliesInRegion(gv_p3_DOMINION_RED, RegionFromId(53), true)
// L3631
AIToggleBulliesInRegion(gv_p2_ZERG, RegionCircle(UnitGetPosition(gv_artifact), 16.0), false)
// L3635
AIToggleBulliesInRegion(gv_p2_ZERG, RegionCircle(UnitGetPosition(gv_artifact), 16.0), true)