# Set Target Player For Attack Waves

Grammar — Set the target for player player attack waves to playerMask
FlagsNative | Action

Sets a player group to be the target of a player’s attack waves.

# Arguments

  • int — Attacker
  • playergroup — Players

Returns — void

native void AIAttackWaveSetTargetPlayer(
	int player,
	playergroup players,
);

Category: AI / AttackWaves / Actions

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L2899
AIAttackWaveSetTargetPlayer(gv_pLAYER_03_INFESTED_REFUGEES, PlayerGroupSingle(gv_pLAYER_01_USER))
// L2900
AIAttackWaveSetTargetPlayer(gv_pLAYER_04_INFESTEDREFUGEES, PlayerGroupSingle(gv_pLAYER_01_USER))
// L3933
AIAttackWaveSetTargetPlayer(gv_pLAYER02_PROTOSS, PlayerGroupSingle(gv_pLAYER01_USER))
// L3934
AIAttackWaveSetTargetPlayer(gv_pLAYER06_TERRORFLEET, PlayerGroupSingle(gv_pLAYER01_USER))
// L2920
AIAttackWaveSetTargetPlayer(gv_p07_ZERG_INFESTED, PlayerGroupSingle(gv_p01_USER))
// L3182
AIAttackWaveSetTargetPlayer(gv_p02_ZERG_EAST, PlayerGroupSingle(gv_p01_USER))
// L3183
AIAttackWaveSetTargetPlayer(gv_p04_ZERG_NORTH, PlayerGroupSingle(gv_p01_USER))
// L3184
AIAttackWaveSetTargetPlayer(gv_p08_ZERG_SOUTH, PlayerGroupSingle(gv_p01_USER))
// L4313
AIAttackWaveSetTargetPlayer(gv_pLAYER_02_DOMINION, PlayerGroupSingle(gv_pLAYER_01_USER))
// L4329
AIAttackWaveSetTargetPlayer(gv_pLAYER_02_DOMINION, PlayerGroupSingle(gv_pLAYER_01_USER))
// L4343
AIAttackWaveSetTargetPlayer(gv_pLAYER_02_DOMINION, PlayerGroupSingle(gv_pLAYER_01_USER))
// L4356
AIAttackWaveSetTargetPlayer(gv_pLAYER_02_DOMINION, PlayerGroupSingle(gv_pLAYER_01_USER))
// L4369
AIAttackWaveSetTargetPlayer(gv_pLAYER_02_DOMINION, PlayerGroupSingle(gv_pLAYER_01_USER))
// L4376
AIAttackWaveSetTargetPlayer(gv_pLAYER_02_DOMINION, PlayerGroupSingle(gv_pLAYER_01_USER))
// L4383
AIAttackWaveSetTargetPlayer(gv_pLAYER_02_DOMINION, PlayerGroupSingle(gv_pLAYER_01_USER))
// L4426
AIAttackWaveSetTargetPlayer(gv_pLAYER_03_DOMINION, PlayerGroupSingle(gv_pLAYER_01_USER))
// L4436
AIAttackWaveSetTargetPlayer(gv_pLAYER_03_DOMINION, PlayerGroupSingle(gv_pLAYER_01_USER))
// L4482
AIAttackWaveSetTargetPlayer(gv_pLAYER_04_DOMINION, PlayerGroupSingle(gv_pLAYER_01_USER))
// L3422
AIAttackWaveSetTargetPlayer(gv_p02_ORLAN_ENEMY, PlayerGroupSingle(gv_p01_USER))
// L1412
AIAttackWaveSetTargetPlayer(gv_p02_TYCHUS, PlayerGroupSingle(gv_odinAIPlayerTarget))
// L1678
AIAttackWaveSetTargetPlayer(gv_p02_TYCHUS, PlayerGroupSingle(gv_odinAIPlayerTarget))
// L1896
AIAttackWaveSetTargetPlayer(gv_p04_DOMINION_INFANTRY_A, PlayerGroupSingle(gv_p02_TYCHUS))
// L1897
AIAttackWaveSetTargetPlayer(gv_p08_DOMINION_INFANTRY_B, PlayerGroupSingle(gv_p02_TYCHUS))
// L1898
AIAttackWaveSetTargetPlayer(gv_p05_DOMINION_FACTORY, PlayerGroupSingle(gv_p02_TYCHUS))
// L1899
AIAttackWaveSetTargetPlayer(gv_p06_DOMINION_STARPORT_A, PlayerGroupSingle(gv_p02_TYCHUS))
// L1900
AIAttackWaveSetTargetPlayer(gv_p07_DOMINION_STARPORT_B, PlayerGroupSingle(gv_p02_TYCHUS))
// L2064
AIAttackWaveSetTargetPlayer(gv_p04_DOMINION_INFANTRY_A, PlayerGroupSingle(gv_p02_TYCHUS))
// L2068
AIAttackWaveSetTargetPlayer(gv_p04_DOMINION_INFANTRY_A, PlayerGroupSingle(gv_p02_TYCHUS))
// L2194
AIAttackWaveSetTargetPlayer(gv_p08_DOMINION_INFANTRY_B, PlayerGroupSingle(gv_p01_USER))
// L4076
AIAttackWaveSetTargetPlayer(gv_p03_DOMINION_SIEGE, PlayerGroupSingle(gv_p01_USER))
// L4077
AIAttackWaveSetTargetPlayer(gv_p04_DOMINION_AIR, PlayerGroupSingle(gv_p01_USER))
// L4078
AIAttackWaveSetTargetPlayer(gv_p05_DOMINION_RAIDER, PlayerGroupSingle(gv_p01_USER))
// L5897
AIAttackWaveSetTargetPlayer(gv_p11_BRUTALISK, PlayerGroupSingle(gv_p01_USER))
// L331
AIAttackWaveSetTargetPlayer(gv_pLAYER_02_DOMINION, PlayerGroupSingle(gv_pLAYER_01_USER))
// L2569
AIAttackWaveSetTargetPlayer(gv_pLAYER02_ZERG, PlayerGroupSingle(gv_pLAYER01_USER))
// L2629
AIAttackWaveSetTargetPlayer(gv_pLAYER03_ZERG, PlayerGroupSingle(gv_pLAYER01_USER))
// L2712
AIAttackWaveSetTargetPlayer(gv_pLAYER04_ZERG, PlayerGroupSingle(gv_pLAYER01_USER))
// L808
AIAttackWaveSetTargetPlayer(gv_p02_ZERG, PlayerGroupSingle(gv_p01_USER))
// L870
AIAttackWaveSetTargetPlayer(gv_p04_ZERG, PlayerGroupSingle(gv_p01_USER))
// L3063
AIAttackWaveSetTargetPlayer(gv_p2_PROTOSS_EAST_ATTACKERS, PlayerGroupSingle(gv_p1_USER))
// L3224
AIAttackWaveSetTargetPlayer(gv_p8_ALLIED_PINK, PlayerGroupSingle(gv_p3_DOMINION_RED))
// L3225
AIAttackWaveSetTargetPlayer(gv_p9_ALLIED_GREEN, PlayerGroupSingle(gv_p3_DOMINION_RED))
// L3226
AIAttackWaveSetTargetPlayer(gv_p11_ALLIED_CELLBLOCK_A, PlayerGroupSingle(gv_p4_DOMINION_PURPLE))
// L3227
AIAttackWaveSetTargetPlayer(gv_p12_ALLIED_CELLBLOCK_B, PlayerGroupSingle(gv_p3_DOMINION_RED))
// L3323
AIAttackWaveSetTargetPlayer(gv_p2_RAYNOR_LIGHTBLUE, PlayerGroupSingle(gv_p5_DOMINION_GREY))
// L3333
AIAttackWaveSetTargetPlayer(gv_p2_RAYNOR_LIGHTBLUE, PlayerGroupSingle(gv_p4_DOMINION_PURPLE))
// L3340
AIAttackWaveSetTargetPlayer(gv_p2_RAYNOR_LIGHTBLUE, PlayerGroupSingle(gv_p3_DOMINION_RED))
// L3550
AIAttackWaveSetTargetPlayer(gv_p3_DOMINION_RED, PlayerGroupSingle(gv_p2_RAYNOR_LIGHTBLUE))
// L3615
AIAttackWaveSetTargetPlayer(gv_p3_DOMINION_RED, PlayerGroupSingle(gv_p2_RAYNOR_LIGHTBLUE))
// L3697
AIAttackWaveSetTargetPlayer(gv_p3_DOMINION_RED, PlayerGroupSingle(gv_p2_RAYNOR_LIGHTBLUE))
// L958
AIAttackWaveSetTargetPlayer(gv_p6_FIRST_PROTOSS, PlayerGroupSingle(gv_p1_USER))
// L1608
AIAttackWaveSetTargetPlayer(gv_p6_FIRST_PROTOSS, PlayerGroupSingle(gv_p1_USER))
// L3320
AIAttackWaveSetTargetPlayer(gv_p2_ZERG, PlayerGroupSingle(gv_p1_USER))
// L3325
AIAttackWaveSetTargetPlayer(gv_p2_ZERG, PlayerGroupSingle(gv_p1_USER))
// L3330
AIAttackWaveSetTargetPlayer(gv_p2_ZERG, PlayerGroupSingle(gv_p1_USER))
// L3337
AIAttackWaveSetTargetPlayer(gv_p2_ZERG, PlayerGroupSingle(gv_p1_USER))
// L3345
AIAttackWaveSetTargetPlayer(gv_p2_ZERG, PlayerGroupSingle(gv_p1_USER))
// L3352
AIAttackWaveSetTargetPlayer(gv_p2_ZERG, PlayerGroupSingle(gv_p1_USER))
// L3360
AIAttackWaveSetTargetPlayer(gv_p2_ZERG, PlayerGroupSingle(gv_p1_USER))
// L3367
AIAttackWaveSetTargetPlayer(gv_p2_ZERG, PlayerGroupSingle(gv_p1_USER))
// L3178
AIAttackWaveSetTargetPlayer(gv_p2_NE_PROTOSSMiddle, PlayerGroupSingle(gv_p1_USER))
// L3179
AIAttackWaveSetTargetPlayer(gv_p4_SE_PROTOSSRight, PlayerGroupSingle(gv_p1_USER))
// L3180
AIAttackWaveSetTargetPlayer(gv_p5_NW_PROTOSSLeft, PlayerGroupSingle(gv_p1_USER))
// L4763
AIAttackWaveSetTargetPlayer(gv_p05_ZERG_BASE, PlayerGroupSingle(gv_p01_USER))
// L1687
AIAttackWaveSetTargetPlayer(gv_pLAYER02_PROTOSS, PlayerGroupSingle(gv_pLAYER01_USER))
// L1779
AIAttackWaveSetTargetPlayer(gv_pLAYER03_PROTOSS, PlayerGroupSingle(gv_pLAYER01_USER))
// L1813
AIAttackWaveSetTargetPlayer(gv_pLAYER04_PROTOSS, PlayerGroupSingle(gv_pLAYER01_USER))
// L3565
AIAttackWaveSetTargetPlayer(gv_pLAYER_02_ScriptedTOSS, PlayerGroupSingle(gv_pLAYER_01_USER))
// L3566
AIAttackWaveSetTargetPlayer(gv_pLAYER_03_HighTOSS, PlayerGroupSingle(gv_pLAYER_01_USER))
// L3567
AIAttackWaveSetTargetPlayer(gv_pLAYER_04_DarkTOSS, PlayerGroupSingle(gv_pLAYER_01_USER))
// L3933
AIAttackWaveSetTargetPlayer(lv_thisAI, PlayerGroupSingle(gv_pLAYER_01_USER))
// L3993
AIAttackWaveSetTargetPlayer(lv_thisAI, PlayerGroupSingle(gv_pLAYER_01_USER))
// L4565
AIAttackWaveSetTargetPlayer(gv_p02_ZERG_PURPLE_NE, PlayerGroupSingle(gv_p01_USER))
// L4566
AIAttackWaveSetTargetPlayer(gv_p05_ZERG_ORANGE_NW, PlayerGroupSingle(gv_p01_USER))
// L4567
AIAttackWaveSetTargetPlayer(gv_p06_ZERG_GREEN_SW, PlayerGroupSingle(gv_p01_USER))
// L4980
AIAttackWaveSetTargetPlayer(gv_p10_ZERG_WHITEHIVE, PlayerGroupSingle(gv_p01_USER))
// L4216
AIAttackWaveSetTargetPlayer(gv_pLAYER_P03_ZERG_BR, PlayerGroupSingle(gv_pLAYER_P01_USER))
// L4217
AIAttackWaveSetTargetPlayer(gv_pLAYER_P04_ZERG_BL, PlayerGroupSingle(gv_pLAYER_P01_USER))
// L4218
AIAttackWaveSetTargetPlayer(gv_pLAYER_P05_ZERG_TL, PlayerGroupSingle(gv_pLAYER_P01_USER))
// L4219
AIAttackWaveSetTargetPlayer(gv_pLAYER_P06_ZERG_TR, PlayerGroupSingle(gv_pLAYER_P01_USER))
// L369
AIAttackWaveSetTargetPlayer(gv_nextWavePlayer, PlayerGroupSingle(gv_pLAYER_USER))
// L378
AIAttackWaveSetTargetPlayer(gv_nextWavePlayer, PlayerGroupSingle(gv_pLAYER_USER))
// L386
AIAttackWaveSetTargetPlayer(gv_nextWavePlayer, PlayerGroupSingle(gv_pLAYER_USER))
// L394
AIAttackWaveSetTargetPlayer(gv_nextWavePlayer, PlayerGroupSingle(gv_pLAYER_USER))
// L403
AIAttackWaveSetTargetPlayer(gv_nextWavePlayer, PlayerGroupSingle(gv_pLAYER_USER))
// L411
AIAttackWaveSetTargetPlayer(gv_nextWavePlayer, PlayerGroupSingle(gv_pLAYER_USER))
// L435
AIAttackWaveSetTargetPlayer(gv_nextWavePlayer, PlayerGroupSingle(gv_pLAYER_USER))
// L901
AIAttackWaveSetTargetPlayer(gv_p10_HYBRID_MANIFESTATIONS, PlayerGroupSingle(gv_p1_USER))
// L959
AIAttackWaveSetTargetPlayer(gv_p6_PROTOSS_ENEMY, PlayerGroupSingle(gv_p1_USER))
// L1022
AIAttackWaveSetTargetPlayer(gv_p4_PROTOSS_ENEMY, PlayerGroupSingle(gv_p1_USER))
// L1129
AIAttackWaveSetTargetPlayer(gv_p3_PROTOSS_ENEMY, PlayerGroupSingle(gv_p1_USER))
// L2079
AIAttackWaveSetTargetPlayer(gv_p10_HYBRID_MANIFESTATIONS, PlayerGroupSingle(gv_p1_USER))
// L1758
AIAttackWaveSetTargetPlayer(gv_p02_ZERG_LOW_GROUND_AI, PlayerGroupSingle(gv_p01_USER))
// L1759
AIAttackWaveSetTargetPlayer(gv_p03_ZERG_NORTH, PlayerGroupSingle(gv_p01_USER))
// L1760
AIAttackWaveSetTargetPlayer(gv_p04_ZERG_EAST, PlayerGroupSingle(gv_p01_USER))
// L1659
AIAttackWaveSetTargetPlayer(gv_p04_ZERG_NW, PlayerGroupSingle(gv_p01_PLAYER))
// L1660
AIAttackWaveSetTargetPlayer(gv_p05_ZERG_NE, PlayerGroupSingle(gv_p01_PLAYER))
// L1661
AIAttackWaveSetTargetPlayer(gv_p06_ZERG_SE, PlayerGroupSingle(gv_p01_PLAYER))
// L1662
AIAttackWaveSetTargetPlayer(gv_p07_FRENZIED_ZERG, PlayerGroupSingle(gv_p01_PLAYER))
// L716
AIAttackWaveSetTargetPlayer(gv_pLAYER_ENEMY, PlayerGroupSingle(gv_pLAYER_USER))