# Add Attack Wave Waypoint

Grammar — Add an attack wave waypoint at waypoint|Point for player player using useTransport|Force Transport Mode/Normal Mode
FlagsNative | Action

Adds a waypoint to the next attack wave for a player. In Force Transport Mode, the wave units will attempt to load up in transports before approaching this waypoint and will not regroup. If there are not enough transports available for all of the units, the stranded units will be dropped from the wave.

# Arguments

  • int — Attacker
  • point — Waypoint
  • bool [ preset::ForceUseTransport ] — Use Transport

Returns — void

native void AIAttackWaveAddWaypoint(
	int player,
	point waypoint,
	bool useTransport,
);

Category: AI / AttackWaves / Actions

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L385
AIAttackWaveAddWaypoint(gv_pLAYER_03_INFESTED_REFUGEES, PointFromId(237), false)
// L386
AIAttackWaveAddWaypoint(gv_pLAYER_03_INFESTED_REFUGEES, PointFromId(457), false)
// L396
AIAttackWaveAddWaypoint(gv_pLAYER_03_INFESTED_REFUGEES, PointFromId(1109), false)
// L439
AIAttackWaveAddWaypoint(gv_pLAYER_03_INFESTED_REFUGEES, PointFromId(859), false)
// L409
AIAttackWaveAddWaypoint(gv_currentWaveAttacker, PointFromId(1966), false)
// L410
AIAttackWaveAddWaypoint(gv_currentWaveAttacker, PointFromId(356), false)
// L415
AIAttackWaveAddWaypoint(gv_currentWaveAttacker, PointFromId(1967), false)
// L419
AIAttackWaveAddWaypoint(gv_currentWaveAttacker, PointFromId(24), false)
// L420
AIAttackWaveAddWaypoint(gv_currentWaveAttacker, PointFromId(1967), false)
// L3191
AIAttackWaveAddWaypoint(gv_p04_ZERG_NORTH, PointFromId(591), false)
// L3195
AIAttackWaveAddWaypoint(gv_p08_ZERG_SOUTH, PointFromId(1117), false)
// L3201
AIAttackWaveAddWaypoint(gv_p08_ZERG_SOUTH, PointFromId(1117), false)
// L3206
AIAttackWaveAddWaypoint(gv_p02_ZERG_EAST, PointFromId(76), false)
// L3213
AIAttackWaveAddWaypoint(gv_p04_ZERG_NORTH, PointFromId(1117), false)
// L3218
AIAttackWaveAddWaypoint(gv_p08_ZERG_SOUTH, PointFromId(591), false)
// L3224
AIAttackWaveAddWaypoint(gv_p04_ZERG_NORTH, PointFromId(76), false)
// L3231
AIAttackWaveAddWaypoint(gv_p08_ZERG_SOUTH, PointFromId(1117), false)
// L3236
AIAttackWaveAddWaypoint(gv_p04_ZERG_NORTH, PointFromId(76), false)
// L3242
AIAttackWaveAddWaypoint(gv_p02_ZERG_EAST, PointFromId(591), false)
// L488
AIAttackWaveAddWaypoint(gv_pLAYER_02_DOMINION, PointFromId(1789), false)
// L489
AIAttackWaveAddWaypoint(gv_pLAYER_02_DOMINION, PointFromId(1790), false)
// L490
AIAttackWaveAddWaypoint(gv_pLAYER_02_DOMINION, PointFromId(1791), false)
// L491
AIAttackWaveAddWaypoint(gv_pLAYER_02_DOMINION, PointFromId(1792), false)
// L492
AIAttackWaveAddWaypoint(gv_pLAYER_02_DOMINION, PointFromId(1793), false)
// L493
AIAttackWaveAddWaypoint(gv_pLAYER_02_DOMINION, PointFromId(1794), false)
// L494
AIAttackWaveAddWaypoint(gv_pLAYER_02_DOMINION, PointFromId(1795), false)
// L495
AIAttackWaveAddWaypoint(gv_pLAYER_02_DOMINION, PointFromId(1796), false)
// L503
AIAttackWaveAddWaypoint(gv_pLAYER_02_DOMINION, PointFromId(1784), false)
// L504
AIAttackWaveAddWaypoint(gv_pLAYER_02_DOMINION, PointFromId(1785), false)
// L376
AIAttackWaveAddWaypoint(gv_p02_ORLAN_ENEMY, PointFromId(191), false)
// L379
AIAttackWaveAddWaypoint(gv_p02_ORLAN_ENEMY, PointFromId(211), false)
// L387
AIAttackWaveAddWaypoint(gv_p02_ORLAN_ENEMY, PointFromId(191), false)
// L390
AIAttackWaveAddWaypoint(gv_p02_ORLAN_ENEMY, PointFromId(212), false)
// L3425
AIAttackWaveAddWaypoint(gv_p02_ORLAN_ENEMY, PointFromId(211), false)
// L3430
AIAttackWaveAddWaypoint(gv_p02_ORLAN_ENEMY, PointFromId(211), false)
// L3435
AIAttackWaveAddWaypoint(gv_p02_ORLAN_ENEMY, PointFromId(212), false)
// L277
AIAttackWaveAddWaypoint(lp_p, PointFromId(211), false)
// L280
AIAttackWaveAddWaypoint(lp_p, PointFromId(206), false)
// L1680
AIAttackWaveAddWaypoint(gv_p02_TYCHUS, PointFromId(651), false)
// L2195
AIAttackWaveAddWaypoint(gv_p08_DOMINION_INFANTRY_B, PointFromId(68), false)
// L2450
AIAttackWaveAddWaypoint(gv_p05_DOMINION_FACTORY, PointFromId(562), false)
// L2612
AIAttackWaveAddWaypoint(gv_p06_DOMINION_STARPORT_A, PointFromId(2200), false)
// L2618
AIAttackWaveAddWaypoint(gv_p06_DOMINION_STARPORT_A, PointFromId(2200), false)
// L2958
AIAttackWaveAddWaypoint(gv_p07_DOMINION_STARPORT_B, PointFromId(572), false)
// L2964
AIAttackWaveAddWaypoint(gv_p07_DOMINION_STARPORT_B, PointFromId(667), false)
// L2967
AIAttackWaveAddWaypoint(gv_p07_DOMINION_STARPORT_B, PointFromId(572), false)
// L3754
AIAttackWaveAddWaypoint(gv_p08_DOMINION, PointFromId(1414), false)
// L3755
AIAttackWaveAddWaypoint(gv_p08_DOMINION, PointFromId(1413), false)
// L3756
AIAttackWaveAddWaypoint(gv_p08_DOMINION, PointFromId(1415), false)
// L3852
AIAttackWaveAddWaypoint(gv_p08_DOMINION, PointFromId(1416), false)
// L3853
AIAttackWaveAddWaypoint(gv_p08_DOMINION, PointFromId(1418), false)
// L3854
AIAttackWaveAddWaypoint(gv_p08_DOMINION, PointFromId(1417), false)
// L3998
AIAttackWaveAddWaypoint(gv_p08_DOMINION, PointFromId(1419), false)
// L3999
AIAttackWaveAddWaypoint(gv_p08_DOMINION, PointFromId(1516), false)
// L4000
AIAttackWaveAddWaypoint(gv_p08_DOMINION, PointFromId(1517), false)
// L4181
AIAttackWaveAddWaypoint(gv_p05_DOMINION_RAIDER, PointFromId(302), false)
// L2658
AIAttackWaveAddWaypoint(gv_pLAYER_02_DOMINION, PointFromId(406), false)
// L2659
AIAttackWaveAddWaypoint(gv_pLAYER_02_DOMINION, PointFromId(1142), false)
// L2660
AIAttackWaveAddWaypoint(gv_pLAYER_02_DOMINION, PointFromId(1143), false)
// L2573
AIAttackWaveAddWaypoint(gv_pLAYER02_ZERG, PointFromId(378), false)
// L2577
AIAttackWaveAddWaypoint(gv_pLAYER02_ZERG, PointFromId(378), false)
// L2581
AIAttackWaveAddWaypoint(gv_pLAYER02_ZERG, PointFromId(378), false)
// L2586
AIAttackWaveAddWaypoint(gv_pLAYER02_ZERG, PointFromId(378), false)
// L2593
AIAttackWaveAddWaypoint(gv_pLAYER02_ZERG, PointFromId(378), false)
// L2596
AIAttackWaveAddWaypoint(gv_pLAYER02_ZERG, PointFromId(378), false)
// L2632
AIAttackWaveAddWaypoint(gv_pLAYER03_ZERG, PointFromId(362), false)
// L2633
AIAttackWaveAddWaypoint(gv_pLAYER03_ZERG, PointFromId(363), false)
// L2637
AIAttackWaveAddWaypoint(gv_pLAYER03_ZERG, PointFromId(361), false)
// L2638
AIAttackWaveAddWaypoint(gv_pLAYER03_ZERG, PointFromId(363), false)
// L818
AIAttackWaveAddWaypoint(gv_p02_ZERG, PointFromId(557), false)
// L835
AIAttackWaveAddWaypoint(gv_p02_ZERG, PointFromId(557), false)
// L839
AIAttackWaveAddWaypoint(gv_p02_ZERG, PointFromId(555), false)
// L208
AIAttackWaveAddWaypoint(gv_p4_PROTOSS_WEST_ESCORTS, PointFromId(2076), false)
// L212
AIAttackWaveAddWaypoint(gv_p4_PROTOSS_WEST_ESCORTS, PointFromId(2077), false)
// L216
AIAttackWaveAddWaypoint(gv_p4_PROTOSS_WEST_ESCORTS, PointFromId(2079), false)
// L220
AIAttackWaveAddWaypoint(gv_p4_PROTOSS_WEST_ESCORTS, PointFromId(2080), false)
// L221
AIAttackWaveAddWaypoint(gv_p4_PROTOSS_WEST_ESCORTS, PointFromId(2078), false)
// L3067
AIAttackWaveAddWaypoint(gv_p2_PROTOSS_EAST_ATTACKERS, PointFromId(3014), false)
// L3072
AIAttackWaveAddWaypoint(gv_p2_PROTOSS_EAST_ATTACKERS, PointFromId(3014), false)
// L3079
AIAttackWaveAddWaypoint(gv_p2_PROTOSS_EAST_ATTACKERS, PointFromId(3014), false)
// L3087
AIAttackWaveAddWaypoint(gv_p2_PROTOSS_EAST_ATTACKERS, PointFromId(3014), false)
// L3088
AIAttackWaveAddWaypoint(gv_p2_PROTOSS_EAST_ATTACKERS, PointFromId(3017), false)
// L437
AIAttackWaveAddWaypoint(lp_ally, gv_waypoints[lv_index], false)
// L444
AIAttackWaveAddWaypoint(lp_ally, gv_waypoints[lv_index], false)
// L238
AIAttackWaveAddWaypoint(gv_p2_ZERG, PointFromId(230), false)
// L239
AIAttackWaveAddWaypoint(gv_p2_ZERG, PointFromId(246), false)
// L240
AIAttackWaveAddWaypoint(gv_p2_ZERG, PointFromId(248), false)
// L241
AIAttackWaveAddWaypoint(gv_p2_ZERG, PointFromId(250), false)
// L2362
AIAttackWaveAddWaypoint(gv_p2_ZERG, PointFromId(246), false)
// L2366
AIAttackWaveAddWaypoint(gv_p2_ZERG, PointFromId(248), false)
// L2369
AIAttackWaveAddWaypoint(gv_p2_ZERG, PointFromId(250), false)
// L3322
AIAttackWaveAddWaypoint(gv_p2_ZERG, PointFromId(1840), false)
// L3354
AIAttackWaveAddWaypoint(gv_p2_ZERG, PointFromId(2106), false)
// L3369
AIAttackWaveAddWaypoint(gv_p2_ZERG, PointFromId(2106), false)
// L3151
AIAttackWaveAddWaypoint(lv_attacker, lv_waypoint, false)
// L476
AIAttackWaveAddWaypoint(lp_player, PointFromId(119), false)
// L477
AIAttackWaveAddWaypoint(lp_player, PointFromId(401), false)
// L478
AIAttackWaveAddWaypoint(lp_player, PointFromId(402), false)
// L4772
AIAttackWaveAddWaypoint(gv_p05_ZERG_BASE, PointFromId(870), false)
// L4777
AIAttackWaveAddWaypoint(gv_p05_ZERG_BASE, PointFromId(620), false)