# Add Escort UnitType To Attack Wave
Grammar — Add unit of type type to the next attack wave for player player, the unit is specifically assigned to escort escort offset by offset|Distance towards angle degrees.
Flags —Native
|Action
Adds a unit of the specified unit type to the next attack wave for a player with orders to escort another unit.
# Arguments
int
— Playerstring
[ gamelink::Unit ] — Typeunit
— Escortfixed
— Offsetfixed
— Angle
Returns — void
native void AIAttackWaveAddEscortType(
int player,
string unitType,
unit escort,
fixed offset,
fixed angle,
);
# Related
Category: AI / AttackWaves / Actions
- [F] —
void
— Add Unit To Attack Wave — ( AIAttackWaveUseUnit ) - [F] —
void
— Add Unit Group To Attack Wave — ( AIAttackWaveUseGroup ) - [F] —
void
— Add Escort Unit To Attack Wave — ( AIAttackWaveAddEscortUnit ) - [F] —
void
— Add Escort UnitType To Attack Wave — ( AIAttackWaveAddEscortType ) - [F] —
void
— Add Attack Wave Waypoint — ( AIAttackWaveAddWaypoint ) - [F] —
void
— Send Attack Wave — ( AIAttackWaveSend ) - [F] —
void
— Cancel Attack Wave — ( AIAttackWaveCancel ) - [F] —
void
— Set Attack Wave Gather Point — ( AIAttackWaveSetGatherPoint ) - [F] —
void
— Set Target Player For Attack Waves — ( AIAttackWaveSetTargetPlayer ) - [F] —
void
— Set Target Unit For Attack Waves — ( AIAttackWaveSetTargetUnit ) - [F] —
void
— Set Target UnitGroup For Attack Waves — ( AIAttackWaveSetTargetUnitGroup ) - [F] —
void
— Set Target UnitArea For Attack Waves — ( AIAttackWaveSetTargetUnitPoint ) - [F] —
void
— Set Target Point For Attack Waves — ( AIAttackWaveSetTargetPoint ) - [F] —
void
— Set Target Merge For Attack Waves — ( AIAttackWaveSetTargetMerge ) - [F] —
void
— Set Target Patrol For Attack Waves — ( AIAttackWaveSetTargetPatrol ) - [F] —
void
— Set Target Escort For Attack Waves — ( AIAttackWaveSetTargetEscort ) - [F] —
void
— Set Target Escort For Attack Waves, No Leashing — ( AIAttackWaveSetTargetEscortNL ) - [F] —
void
— Set Target Gather Defense For Attack Waves — ( AIAttackWaveSetTargetGatherD ) - [F] —
void
— Set Target Gather Offense For Attack Waves — ( AIAttackWaveSetTargetGatherO ) - [F] —
void
— Set Target Melee For Attack Waves — ( AIAttackWaveSetTargetMelee ) - [F] —
void
— Set Target Melee Harass For Attack Waves — ( AIAttackWaveSetTargetMeleeHarass ) - [F] —
void
— Set Target Region For Attack/Defense Waves — ( AIAttackWaveSetTargetRegion ) - [F] —
void
— Add Attack Wave Unit Types (Liberty) — ( AIAttackWaveAddUnits4 ) - [F] —
void
— Add Attack Wave Unit Types (Swarm) — ( AIAttackWaveAddUnits3 ) - [F] —
void
— Set Attack Wave Keep Alive — ( AIAttackWaveSetKeepAlive ) - [F] —
void
— Set Attack Wave Gather Early No Replace — ( AIAttackWaveSetGatherEarlyNoReplace )
# Examples
# campaigns/liberty.sc2campaign
// L2262
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 45.0)
// L2263
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 315.0)
// L2265
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 135.0)
// L2269
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 225.0)
// L338
AIAttackWaveAddEscortType(gv_p4_PROTOSS_WEST_ESCORTS, "Scout", lv_harvestingProbe, 3.5, (lv_offsetAngle * IntToFixed(lv_i)))
// L352
AIAttackWaveAddEscortType(gv_p4_PROTOSS_WEST_ESCORTS, "Scout", lv_harvestingProbe, 3.5, (lv_offsetAngle * IntToFixed(lv_i)))
// L366
AIAttackWaveAddEscortType(gv_p4_PROTOSS_WEST_ESCORTS, "Scout", lv_harvestingProbe, 3.5, (lv_offsetAngle * IntToFixed(lv_i)))
// L373
AIAttackWaveAddEscortType(gv_p4_PROTOSS_WEST_ESCORTS, "VoidRay", lv_harvestingProbe, 1.5, (lv_offsetAngle * IntToFixed(lv_i)))
// L387
AIAttackWaveAddEscortType(gv_p4_PROTOSS_WEST_ESCORTS, "Scout", lv_harvestingProbe, 3.5, (lv_offsetAngle * IntToFixed(lv_i)))
// L394
AIAttackWaveAddEscortType(gv_p4_PROTOSS_WEST_ESCORTS, "VoidRay", lv_harvestingProbe, 1.5, (lv_offsetAngle * IntToFixed(lv_i)))
// L409
AIAttackWaveAddEscortType(gv_p4_PROTOSS_WEST_ESCORTS, "Scout", lv_harvestingProbe, 3.5, (lv_offsetAngle * IntToFixed(lv_i)))
// L416
AIAttackWaveAddEscortType(gv_p4_PROTOSS_WEST_ESCORTS, "VoidRay", lv_harvestingProbe, 1.5, (lv_offsetAngle * IntToFixed(lv_i)))
// L432
AIAttackWaveAddEscortType(gv_p4_PROTOSS_WEST_ESCORTS, "Scout", lv_harvestingProbe, 3.5, (lv_offsetAngle * IntToFixed(lv_i)))
// L439
AIAttackWaveAddEscortType(gv_p4_PROTOSS_WEST_ESCORTS, "VoidRay", lv_harvestingProbe, 1.5, (lv_offsetAngle * IntToFixed(lv_i)))
// L2262
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 45.0)
// L2263
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 315.0)
// L2265
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 135.0)
// L2269
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 225.0)
// L338
AIAttackWaveAddEscortType(gv_p4_PROTOSS_WEST_ESCORTS, "Scout", lv_harvestingProbe, 3.5, (lv_offsetAngle * IntToFixed(lv_i)))
// L352
AIAttackWaveAddEscortType(gv_p4_PROTOSS_WEST_ESCORTS, "Scout", lv_harvestingProbe, 3.5, (lv_offsetAngle * IntToFixed(lv_i)))
// L366
AIAttackWaveAddEscortType(gv_p4_PROTOSS_WEST_ESCORTS, "Scout", lv_harvestingProbe, 3.5, (lv_offsetAngle * IntToFixed(lv_i)))
// L373
AIAttackWaveAddEscortType(gv_p4_PROTOSS_WEST_ESCORTS, "VoidRay", lv_harvestingProbe, 1.5, (lv_offsetAngle * IntToFixed(lv_i)))
// L387
AIAttackWaveAddEscortType(gv_p4_PROTOSS_WEST_ESCORTS, "Scout", lv_harvestingProbe, 3.5, (lv_offsetAngle * IntToFixed(lv_i)))
// L394
AIAttackWaveAddEscortType(gv_p4_PROTOSS_WEST_ESCORTS, "VoidRay", lv_harvestingProbe, 1.5, (lv_offsetAngle * IntToFixed(lv_i)))
// L409
AIAttackWaveAddEscortType(gv_p4_PROTOSS_WEST_ESCORTS, "Scout", lv_harvestingProbe, 3.5, (lv_offsetAngle * IntToFixed(lv_i)))
// L416
AIAttackWaveAddEscortType(gv_p4_PROTOSS_WEST_ESCORTS, "VoidRay", lv_harvestingProbe, 1.5, (lv_offsetAngle * IntToFixed(lv_i)))
// L432
AIAttackWaveAddEscortType(gv_p4_PROTOSS_WEST_ESCORTS, "Scout", lv_harvestingProbe, 3.5, (lv_offsetAngle * IntToFixed(lv_i)))
// L439
AIAttackWaveAddEscortType(gv_p4_PROTOSS_WEST_ESCORTS, "VoidRay", lv_harvestingProbe, 1.5, (lv_offsetAngle * IntToFixed(lv_i)))
// L3469
AIAttackWaveAddEscortType(gv_pLAYER_02_ZERG, "Hydralisk", gv_zagara, 4.0, 60.0)
// L3470
AIAttackWaveAddEscortType(gv_pLAYER_02_ZERG, "Hydralisk", gv_zagara, 4.0, -60.0)
// L3471
AIAttackWaveAddEscortType(gv_pLAYER_02_ZERG, "Hydralisk", gv_zagara, 4.0, 180.0)
// L3474
AIAttackWaveAddEscortType(gv_pLAYER_02_ZERG, "Hydralisk", gv_zagara, 4.0, 60.0)
// L3475
AIAttackWaveAddEscortType(gv_pLAYER_02_ZERG, "Hydralisk", gv_zagara, 4.0, -60.0)
// L3481
AIAttackWaveAddEscortType(gv_pLAYER_02_ZERG, "Hydralisk", gv_zagara, 4.0, 60.0)
// L3482
AIAttackWaveAddEscortType(gv_pLAYER_02_ZERG, "Hydralisk", gv_zagara, 4.0, 0.0)
// L3483
AIAttackWaveAddEscortType(gv_pLAYER_02_ZERG, "Hydralisk", gv_zagara, 4.0, -60.0)
// L3484
AIAttackWaveAddEscortType(gv_pLAYER_02_ZERG, "Hydralisk", gv_zagara, 4.0, 120.0)
// L3485
AIAttackWaveAddEscortType(gv_pLAYER_02_ZERG, "Hydralisk", gv_zagara, 4.0, 240.0)
// L3469
AIAttackWaveAddEscortType(gv_pLAYER_02_ZERG, "Hydralisk", gv_zagara, 4.0, 60.0)
// L3470
AIAttackWaveAddEscortType(gv_pLAYER_02_ZERG, "Hydralisk", gv_zagara, 4.0, -60.0)
// L3471
AIAttackWaveAddEscortType(gv_pLAYER_02_ZERG, "Hydralisk", gv_zagara, 4.0, 180.0)
// L3474
AIAttackWaveAddEscortType(gv_pLAYER_02_ZERG, "Hydralisk", gv_zagara, 4.0, 60.0)
// L3475
AIAttackWaveAddEscortType(gv_pLAYER_02_ZERG, "Hydralisk", gv_zagara, 4.0, -60.0)
// L3481
AIAttackWaveAddEscortType(gv_pLAYER_02_ZERG, "Hydralisk", gv_zagara, 4.0, 60.0)
// L3482
AIAttackWaveAddEscortType(gv_pLAYER_02_ZERG, "Hydralisk", gv_zagara, 4.0, 0.0)
// L3483
AIAttackWaveAddEscortType(gv_pLAYER_02_ZERG, "Hydralisk", gv_zagara, 4.0, -60.0)
// L3484
AIAttackWaveAddEscortType(gv_pLAYER_02_ZERG, "Hydralisk", gv_zagara, 4.0, 120.0)
// L3485
AIAttackWaveAddEscortType(gv_pLAYER_02_ZERG, "Hydralisk", gv_zagara, 4.0, 240.0)