# Set Target Point For Attack Waves

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

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

# Arguments

  • int — Attacker
  • point — Point

Returns — void

native void AIAttackWaveSetTargetPoint(
	int player,
	point p,
);

Category: AI / AttackWaves / Actions

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L328
AIAttackWaveSetTargetPoint(gv_pLAYER_02_DOMINION, UnitGetPosition(gv_medicBarracks))
// L3677
AIAttackWaveSetTargetPoint(gv_pLAYER_02_DOMINION, UnitGetPosition(gv_medicBarracks))
// L1724
AIAttackWaveSetTargetPoint(gv_p4_PROTOSS_WEST_ESCORTS, UnitGetPosition(EventUnit()))
// L1733
AIAttackWaveSetTargetPoint(gv_p4_PROTOSS_WEST_ESCORTS, UnitGetPosition(EventUnit()))
// L1743
AIAttackWaveSetTargetPoint(gv_p4_PROTOSS_WEST_ESCORTS, UnitGetPosition(EventUnit()))
// L1752
AIAttackWaveSetTargetPoint(gv_p4_PROTOSS_WEST_ESCORTS, UnitGetPosition(EventUnit()))
// L1758
AIAttackWaveSetTargetPoint(gv_p4_PROTOSS_WEST_ESCORTS, UnitGetPosition(EventUnit()))
// L1767
AIAttackWaveSetTargetPoint(gv_p4_PROTOSS_WEST_ESCORTS, UnitGetPosition(EventUnit()))
// L1773
AIAttackWaveSetTargetPoint(gv_p4_PROTOSS_WEST_ESCORTS, UnitGetPosition(EventUnit()))
// L1783
AIAttackWaveSetTargetPoint(gv_p4_PROTOSS_WEST_ESCORTS, UnitGetPosition(EventUnit()))
// L1789
AIAttackWaveSetTargetPoint(gv_p4_PROTOSS_WEST_ESCORTS, UnitGetPosition(EventUnit()))
// L237
AIAttackWaveSetTargetPoint(gv_p2_ZERG, PointFromId(724))
// L2359
AIAttackWaveSetTargetPoint(gv_p2_ZERG, PointFromId(724))
// L2658
AIAttackWaveSetTargetPoint(gv_p2_ZERG, PointFromId(724))
// L2671
AIAttackWaveSetTargetPoint(gv_p2_ZERG, PointFromId(724))
// L2684
AIAttackWaveSetTargetPoint(gv_p2_ZERG, PointFromId(724))
// L2838
AIAttackWaveSetTargetPoint(gv_p2_ZERG, PointFromId(724))
// L2894
AIAttackWaveSetTargetPoint(gv_p2_ZERG, PointFromId(724))
// L2907
AIAttackWaveSetTargetPoint(gv_p2_ZERG, PointFromId(724))
// L419
AIAttackWaveSetTargetPoint(gv_nextWavePlayer, UnitGetPosition(gv_artifact))
// L430
AIAttackWaveSetTargetPoint(gv_nextWavePlayer, UnitGetPosition(gv_artifact))
// L328
AIAttackWaveSetTargetPoint(gv_pLAYER_02_DOMINION, UnitGetPosition(gv_medicBarracks))
// L3677
AIAttackWaveSetTargetPoint(gv_pLAYER_02_DOMINION, UnitGetPosition(gv_medicBarracks))
// L1724
AIAttackWaveSetTargetPoint(gv_p4_PROTOSS_WEST_ESCORTS, UnitGetPosition(EventUnit()))
// L1733
AIAttackWaveSetTargetPoint(gv_p4_PROTOSS_WEST_ESCORTS, UnitGetPosition(EventUnit()))
// L1743
AIAttackWaveSetTargetPoint(gv_p4_PROTOSS_WEST_ESCORTS, UnitGetPosition(EventUnit()))
// L1752
AIAttackWaveSetTargetPoint(gv_p4_PROTOSS_WEST_ESCORTS, UnitGetPosition(EventUnit()))
// L1758
AIAttackWaveSetTargetPoint(gv_p4_PROTOSS_WEST_ESCORTS, UnitGetPosition(EventUnit()))
// L1767
AIAttackWaveSetTargetPoint(gv_p4_PROTOSS_WEST_ESCORTS, UnitGetPosition(EventUnit()))
// L1773
AIAttackWaveSetTargetPoint(gv_p4_PROTOSS_WEST_ESCORTS, UnitGetPosition(EventUnit()))
// L1783
AIAttackWaveSetTargetPoint(gv_p4_PROTOSS_WEST_ESCORTS, UnitGetPosition(EventUnit()))
// L1789
AIAttackWaveSetTargetPoint(gv_p4_PROTOSS_WEST_ESCORTS, UnitGetPosition(EventUnit()))
// L237
AIAttackWaveSetTargetPoint(gv_p2_ZERG, PointFromId(724))
// L2359
AIAttackWaveSetTargetPoint(gv_p2_ZERG, PointFromId(724))
// L2658
AIAttackWaveSetTargetPoint(gv_p2_ZERG, PointFromId(724))
// L2671
AIAttackWaveSetTargetPoint(gv_p2_ZERG, PointFromId(724))
// L2684
AIAttackWaveSetTargetPoint(gv_p2_ZERG, PointFromId(724))
// L2838
AIAttackWaveSetTargetPoint(gv_p2_ZERG, PointFromId(724))
// L2894
AIAttackWaveSetTargetPoint(gv_p2_ZERG, PointFromId(724))
// L2907
AIAttackWaveSetTargetPoint(gv_p2_ZERG, PointFromId(724))
// L419
AIAttackWaveSetTargetPoint(gv_nextWavePlayer, UnitGetPosition(gv_artifact))
// L430
AIAttackWaveSetTargetPoint(gv_nextWavePlayer, UnitGetPosition(gv_artifact))
// L4532
AIAttackWaveSetTargetPoint(gv_pLAYER_02_MOEBIUS_S01, PointFromId(455))
// L4614
AIAttackWaveSetTargetPoint(gv_pLAYER_02_MOEBIUS_S01, PointFromId(455))

# campaigns/swarm.sc2campaign

ai9F879D34.galaxy

// L106
AIAttackWaveSetTargetPoint(p, PointFromId(619))
// L231
AIAttackWaveSetTargetPoint(p, PointFromId(619))
// L359
AIAttackWaveSetTargetPoint(p, PointFromId(619))

# campaigns/swarm.sc2campaign

aiEF862D00.galaxy

// L102
AIAttackWaveSetTargetPoint(p, PointFromId(114))

# campaigns/swarm.sc2campaign

aiAFDBFFDC.galaxy

// L102
AIAttackWaveSetTargetPoint(p, PointFromId(2406))
// L225
AIAttackWaveSetTargetPoint(p, PointFromId(2406))
// L358
AIAttackWaveSetTargetPoint(p, PointFromId(2406))
// L496
AIAttackWaveSetTargetPoint(p, PointFromId(2406))
// L634
AIAttackWaveSetTargetPoint(p, PointFromId(2406))

# campaigns/swarm.sc2campaign

aiEC423AC6.galaxy

// L106
AIAttackWaveSetTargetPoint(p, PointFromId(1077))
// L233
AIAttackWaveSetTargetPoint(p, PointFromId(2))
// L353
AIAttackWaveSetTargetPoint(p, PointFromId(2))
// L477
AIAttackWaveSetTargetPoint(p, PointFromId(1077))
// L599
AIAttackWaveSetTargetPoint(p, PointFromId(2))
// L719
AIAttackWaveSetTargetPoint(p, PointFromId(2))
// L843
AIAttackWaveSetTargetPoint(p, PointFromId(1077))
// L965
AIAttackWaveSetTargetPoint(p, PointFromId(2))
// L1090
AIAttackWaveSetTargetPoint(p, PointFromId(2))
// L1214
AIAttackWaveSetTargetPoint(p, PointFromId(1077))

# campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal02.sc2map

aiEF862D00.galaxy

// L102
AIAttackWaveSetTargetPoint(p, PointFromId(114))

# campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map

aiAFDBFFDC.galaxy

// L102
AIAttackWaveSetTargetPoint(p, PointFromId(2406))
// L225
AIAttackWaveSetTargetPoint(p, PointFromId(2406))
// L358
AIAttackWaveSetTargetPoint(p, PointFromId(2406))
// L496
AIAttackWaveSetTargetPoint(p, PointFromId(2406))
// L634
AIAttackWaveSetTargetPoint(p, PointFromId(2406))

# campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map

aiEC423AC6.galaxy

// L106
AIAttackWaveSetTargetPoint(p, PointFromId(1077))
// L233
AIAttackWaveSetTargetPoint(p, PointFromId(2))
// L353
AIAttackWaveSetTargetPoint(p, PointFromId(2))
// L477
AIAttackWaveSetTargetPoint(p, PointFromId(1077))
// L599
AIAttackWaveSetTargetPoint(p, PointFromId(2))
// L719
AIAttackWaveSetTargetPoint(p, PointFromId(2))
// L843
AIAttackWaveSetTargetPoint(p, PointFromId(1077))
// L965
AIAttackWaveSetTargetPoint(p, PointFromId(2))
// L1090
AIAttackWaveSetTargetPoint(p, PointFromId(2))
// L1214
AIAttackWaveSetTargetPoint(p, PointFromId(1077))

# campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map

MapScript.galaxy

// L4532
AIAttackWaveSetTargetPoint(gv_pLAYER_02_MOEBIUS_S01, PointFromId(455))
// L4614
AIAttackWaveSetTargetPoint(gv_pLAYER_02_MOEBIUS_S01, PointFromId(455))

# campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map

ai9F879D34.galaxy

// L106
AIAttackWaveSetTargetPoint(p, PointFromId(619))
// L231
AIAttackWaveSetTargetPoint(p, PointFromId(619))
// L359
AIAttackWaveSetTargetPoint(p, PointFromId(619))

# campaigns/void.sc2campaign

MapScript.galaxy

// L5564
AIAttackWaveSetTargetPoint(gv_pLAYER_02_ZERG, PointFromId(901))

# campaigns/void.sc2campaign

ai35D1D5DC.galaxy

// L213
AIAttackWaveSetTargetPoint(p, PointFromId(901))
// L341
AIAttackWaveSetTargetPoint(p, PointFromId(901))
// L469
AIAttackWaveSetTargetPoint(p, PointFromId(901))
// L609
AIAttackWaveSetTargetPoint(p, PointFromId(901))

# campaigns/void.sc2campaign

ai041954F3.galaxy

// L423
AIAttackWaveSetTargetPoint(p, PointFromId(1058))

# campaigns/void.sc2campaign

aiCC0499EA.galaxy

// L431
AIAttackWaveSetTargetPoint(p, PointFromId(1058))

# campaigns/void.sc2campaign

MapScript.galaxy

// L3831
AIAttackWaveSetTargetPoint(lv_attacker, PointFromId(1521))

# campaigns/void.sc2campaign

ai1AEFD599.galaxy

// L102
AIAttackWaveSetTargetPoint(p, PointFromId(70))
// L221
AIAttackWaveSetTargetPoint(p, PointFromId(70))
// L342
AIAttackWaveSetTargetPoint(p, PointFromId(70))
// L468
AIAttackWaveSetTargetPoint(p, PointFromId(70))
// L592
AIAttackWaveSetTargetPoint(p, PointFromId(70))
// L721
AIAttackWaveSetTargetPoint(p, PointFromId(70))
// L853
AIAttackWaveSetTargetPoint(p, PointFromId(70))
// L982
AIAttackWaveSetTargetPoint(p, PointFromId(70))