# Last Created Wave

Grammar — Last created wave
FlagsNative | Function

Returns the last attack wave created by trigger script. This will get set after Send Attack Wave is called.

Returns — wave

native wave WaveLastCreated();

Category: AI / AttackWaves / Functions

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2094

            if ((lv_escortCount > 0)) {
                AIAttackWaveSend(lv_escortPlayer, 0, false);
                gv_trainList[lv_trainIndex].lv_escortWave = WaveLastCreated();
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:1727

        gf_AddFriendlyWavepoints(FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0)));
        AIAttackWaveSend(gv_p4_PROTOSS_WEST_ESCORTS, 40, false);
        gv_terrazineAttackWaves[FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0))][1] = WaveLastCreated();
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:1736

        gf_AddFriendlyWavepoints(FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0)));
        AIAttackWaveSend(gv_p4_PROTOSS_WEST_ESCORTS, 40, false);
        gv_terrazineAttackWaves[FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0))][1] = WaveLastCreated();
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:1746

        gf_AddFriendlyWavepoints(FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0)));
        AIAttackWaveSend(gv_p4_PROTOSS_WEST_ESCORTS, 40, false);
        gv_terrazineAttackWaves[FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0))][1] = WaveLastCreated();
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:1755

        gf_AddFriendlyWavepoints(FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0)));
        AIAttackWaveSend(gv_p4_PROTOSS_WEST_ESCORTS, 0, false);
        gv_terrazineAttackWaves[FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0))][1] = WaveLastCreated();
        AIAttackWaveAddUnits4(1, 1, 2, 2, "Scout");
        AIAttackWaveAddUnits4(1, 1, 2, 2, "VoidRay");

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:1761

        gf_AddFriendlyWavepoints(FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0)));
        AIAttackWaveSend(gv_p4_PROTOSS_WEST_ESCORTS, 45, false);
        gv_terrazineAttackWaves[FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0))][2] = WaveLastCreated();
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:1770

        gf_AddFriendlyWavepoints(FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0)));
        AIAttackWaveSend(gv_p4_PROTOSS_WEST_ESCORTS, 0, false);
        gv_terrazineAttackWaves[FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0))][1] = WaveLastCreated();
        AIAttackWaveAddUnits4(2, 2, 1, 2, "Scout");
        AIAttackWaveAddUnits4(1, 1, 2, 2, "VoidRay");

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:1776

        gf_AddFriendlyWavepoints(FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0)));
        AIAttackWaveSend(gv_p4_PROTOSS_WEST_ESCORTS, 45, false);
        gv_terrazineAttackWaves[FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0))][2] = WaveLastCreated();
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:1786

        gf_AddFriendlyWavepoints(FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0)));
        AIAttackWaveSend(gv_p4_PROTOSS_WEST_ESCORTS, 0, false);
        gv_terrazineAttackWaves[FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0))][1] = WaveLastCreated();
        AIAttackWaveAddUnits4(1, 1, 2, 2, "VoidRay");
        AIAttackWaveAddUnits4(3, 3, 2, 4, "Scout");

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:1792

        gf_AddFriendlyWavepoints(FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0)));
        AIAttackWaveSend(gv_p4_PROTOSS_WEST_ESCORTS, 45, false);
        gv_terrazineAttackWaves[FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0))][2] = WaveLastCreated();
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul04.sc2map/MapScript.galaxy:3241

        UnitGroupRemove(gv_gGWavesUnitGroup, autoFCFC6CC1_var);
    }
    AIAttackWaveCancel(WaveLastCreated());
    TriggerExecute(gt_AttackWavesEndGameAirKillers, true, false);
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2mapMapScript.galaxy:2094

            if ((lv_escortCount > 0)) {
                AIAttackWaveSend(lv_escortPlayer, 0, false);
                gv_trainList[lv_trainIndex].lv_escortWave = WaveLastCreated();
            }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2mapMapScript.galaxy:1727

        gf_AddFriendlyWavepoints(FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0)));
        AIAttackWaveSend(gv_p4_PROTOSS_WEST_ESCORTS, 40, false);
        gv_terrazineAttackWaves[FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0))][1] = WaveLastCreated();
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2mapMapScript.galaxy:1736

        gf_AddFriendlyWavepoints(FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0)));
        AIAttackWaveSend(gv_p4_PROTOSS_WEST_ESCORTS, 40, false);
        gv_terrazineAttackWaves[FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0))][1] = WaveLastCreated();
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2mapMapScript.galaxy:1746

        gf_AddFriendlyWavepoints(FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0)));
        AIAttackWaveSend(gv_p4_PROTOSS_WEST_ESCORTS, 40, false);
        gv_terrazineAttackWaves[FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0))][1] = WaveLastCreated();
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2mapMapScript.galaxy:1755

        gf_AddFriendlyWavepoints(FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0)));
        AIAttackWaveSend(gv_p4_PROTOSS_WEST_ESCORTS, 0, false);
        gv_terrazineAttackWaves[FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0))][1] = WaveLastCreated();
        AIAttackWaveAddUnits4(1, 1, 2, 2, "Scout");
        AIAttackWaveAddUnits4(1, 1, 2, 2, "VoidRay");

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2mapMapScript.galaxy:1761

        gf_AddFriendlyWavepoints(FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0)));
        AIAttackWaveSend(gv_p4_PROTOSS_WEST_ESCORTS, 45, false);
        gv_terrazineAttackWaves[FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0))][2] = WaveLastCreated();
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2mapMapScript.galaxy:1770

        gf_AddFriendlyWavepoints(FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0)));
        AIAttackWaveSend(gv_p4_PROTOSS_WEST_ESCORTS, 0, false);
        gv_terrazineAttackWaves[FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0))][1] = WaveLastCreated();
        AIAttackWaveAddUnits4(2, 2, 1, 2, "Scout");
        AIAttackWaveAddUnits4(1, 1, 2, 2, "VoidRay");

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2mapMapScript.galaxy:1776

        gf_AddFriendlyWavepoints(FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0)));
        AIAttackWaveSend(gv_p4_PROTOSS_WEST_ESCORTS, 45, false);
        gv_terrazineAttackWaves[FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0))][2] = WaveLastCreated();
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2mapMapScript.galaxy:1786

        gf_AddFriendlyWavepoints(FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0)));
        AIAttackWaveSend(gv_p4_PROTOSS_WEST_ESCORTS, 0, false);
        gv_terrazineAttackWaves[FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0))][1] = WaveLastCreated();
        AIAttackWaveAddUnits4(1, 1, 2, 2, "VoidRay");
        AIAttackWaveAddUnits4(3, 3, 2, 4, "Scout");

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2mapMapScript.galaxy:1792

        gf_AddFriendlyWavepoints(FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0)));
        AIAttackWaveSend(gv_p4_PROTOSS_WEST_ESCORTS, 45, false);
        gv_terrazineAttackWaves[FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0))][2] = WaveLastCreated();
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul04.sc2mapMapScript.galaxy:3241

        UnitGroupRemove(gv_gGWavesUnitGroup, autoFCFC6CC1_var);
    }
    AIAttackWaveCancel(WaveLastCreated());
    TriggerExecute(gt_AttackWavesEndGameAirKillers, true, false);
    return true;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionzergling.sc2map/ai4BEFB21E.galaxy:116


    AIAttackWaveSend(p, ts, false);
    ai4BEFB21E_wave1_lastWave[p] = WaveLastCreated();
    Wait(ts, c_timeAI);
    tf = 0;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionzergling.sc2map/ai4BEFB21E.galaxy:232


    AIAttackWaveSend(p, ts, false);
    ai4BEFB21E_wave2_lastWave[p] = WaveLastCreated();
    Wait(ts, c_timeAI);
    tf = 0;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar01.sc2map/MapScript.galaxy:3511

    }
    AIAttackWaveSend(gv_pLAYER_02_ZERG, 60, false);
    gv_zagaraEscortWave = WaveLastCreated();
    Wait(60.0, c_timeAI);
    if ((gv_zagaraAlive == true)) {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar02.sc2map/ai55EC7BB9.galaxy:137


    AIAttackWaveSend(p, ts, false);
    ai55EC7BB9_wave2_lastWave[p] = WaveLastCreated();
    ai55EC7BB9_lastWave[p] = ai55EC7BB9_wave2_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar02.sc2map/ai55EC7BB9.galaxy:254


    AIAttackWaveSend(p, ts, false);
    ai55EC7BB9_wave1_lastWave[p] = WaveLastCreated();
    ai55EC7BB9_lastWave[p] = ai55EC7BB9_wave1_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar02.sc2map/ai55EC7BB9.galaxy:376


    AIAttackWaveSend(p, ts, false);
    ai55EC7BB9_wave3_lastWave[p] = WaveLastCreated();
    ai55EC7BB9_lastWave[p] = ai55EC7BB9_wave3_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar02.sc2map/ai55EC7BB9.galaxy:491


    AIAttackWaveSend(p, ts, false);
    ai55EC7BB9_wave8_lastWave[p] = WaveLastCreated();
    ai55EC7BB9_lastWave[p] = ai55EC7BB9_wave8_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar02.sc2map/ai55EC7BB9.galaxy:610


    AIAttackWaveSend(p, ts, false);
    ai55EC7BB9_wave6_lastWave[p] = WaveLastCreated();
    ai55EC7BB9_lastWave[p] = ai55EC7BB9_wave6_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar02.sc2map/ai55EC7BB9.galaxy:738


    AIAttackWaveSend(p, ts, false);
    ai55EC7BB9_wave4_lastWave[p] = WaveLastCreated();
    ai55EC7BB9_lastWave[p] = ai55EC7BB9_wave4_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar02.sc2map/ai55EC7BB9.galaxy:860


    AIAttackWaveSend(p, ts, false);
    ai55EC7BB9_wave5_lastWave[p] = WaveLastCreated();
    ai55EC7BB9_lastWave[p] = ai55EC7BB9_wave5_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar02.sc2map/ai55EC7BB9.galaxy:989


    AIAttackWaveSend(p, ts, false);
    ai55EC7BB9_wave7_lastWave[p] = WaveLastCreated();
    ai55EC7BB9_lastWave[p] = ai55EC7BB9_wave7_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar02.sc2map/ai869ED511.galaxy:114


    AIAttackWaveSend(p, ts, false);
    ai869ED511_wave1_lastWave[p] = WaveLastCreated();
    ai869ED511_lastWave[p] = ai869ED511_wave1_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar02.sc2map/ai869ED511.galaxy:234


    AIAttackWaveSend(p, ts, false);
    ai869ED511_wave2_lastWave[p] = WaveLastCreated();
    ai869ED511_lastWave[p] = ai869ED511_wave2_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar02.sc2map/ai869ED511.galaxy:349


    AIAttackWaveSend(p, ts, false);
    ai869ED511_wave3_lastWave[p] = WaveLastCreated();
    ai869ED511_lastWave[p] = ai869ED511_wave3_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar03.sc2map/aiCA5998BB.galaxy:135


    AIAttackWaveSend(p, ts, false);
    aiCA5998BB_wave1_lastWave[p] = WaveLastCreated();
    aiCA5998BB_lastWave[p] = aiCA5998BB_wave1_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar03.sc2map/aiCA5998BB.galaxy:262


    AIAttackWaveSend(p, ts, false);
    aiCA5998BB_wave4_lastWave[p] = WaveLastCreated();
    aiCA5998BB_lastWave[p] = aiCA5998BB_wave4_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar03.sc2map/aiCA5998BB.galaxy:387


    AIAttackWaveSend(p, ts, false);
    aiCA5998BB_wave2_lastWave[p] = WaveLastCreated();
    aiCA5998BB_lastWave[p] = aiCA5998BB_wave2_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar03.sc2map/aiCA5998BB.galaxy:525


    AIAttackWaveSend(p, ts, false);
    aiCA5998BB_wave5_lastWave[p] = WaveLastCreated();
    aiCA5998BB_lastWave[p] = aiCA5998BB_wave5_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar03.sc2map/aiCA5998BB.galaxy:649


    AIAttackWaveSend(p, ts, false);
    aiCA5998BB_wave6_lastWave[p] = WaveLastCreated();
    aiCA5998BB_lastWave[p] = aiCA5998BB_wave6_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar03.sc2map/aiCA5998BB.galaxy:774


    AIAttackWaveSend(p, ts, false);
    aiCA5998BB_wave7_lastWave[p] = WaveLastCreated();
    aiCA5998BB_lastWave[p] = aiCA5998BB_wave7_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar03.sc2map/aiCA5998BB.galaxy:897


    AIAttackWaveSend(p, ts, false);
    aiCA5998BB_wave8_lastWave[p] = WaveLastCreated();
    aiCA5998BB_lastWave[p] = aiCA5998BB_wave8_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar03.sc2map/aiCA5998BB.galaxy:1019


    AIAttackWaveSend(p, ts, false);
    aiCA5998BB_wave9_lastWave[p] = WaveLastCreated();
    aiCA5998BB_lastWave[p] = aiCA5998BB_wave9_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar03.sc2map/aiCA5998BB.galaxy:1143


    AIAttackWaveSend(p, ts, false);
    aiCA5998BB_wave10_lastWave[p] = WaveLastCreated();
    aiCA5998BB_lastWave[p] = aiCA5998BB_wave10_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar03.sc2map/aiCA5998BB.galaxy:1265


    AIAttackWaveSend(p, ts, false);
    aiCA5998BB_wave3_lastWave[p] = WaveLastCreated();
    aiCA5998BB_lastWave[p] = aiCA5998BB_wave3_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/ai32C8620D.galaxy:120


    AIAttackWaveSend(p, ts, false);
    ai32C8620D_wave1_lastWave[p] = WaveLastCreated();
    ai32C8620D_lastWave[p] = ai32C8620D_wave1_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/ai32C8620D.galaxy:250


    AIAttackWaveSend(p, ts, false);
    ai32C8620D_wave2_lastWave[p] = WaveLastCreated();
    ai32C8620D_lastWave[p] = ai32C8620D_wave2_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/ai32C8620D.galaxy:377


    AIAttackWaveSend(p, ts, false);
    ai32C8620D_wave3_lastWave[p] = WaveLastCreated();
    ai32C8620D_lastWave[p] = ai32C8620D_wave3_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/ai32C8620D.galaxy:501


    AIAttackWaveSend(p, ts, false);
    ai32C8620D_wave4_lastWave[p] = WaveLastCreated();
    ai32C8620D_lastWave[p] = ai32C8620D_wave4_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/ai5BE6898D.galaxy:120


    AIAttackWaveSend(p, ts, false);
    ai5BE6898D_wave4_lastWave[p] = WaveLastCreated();
    ai5BE6898D_lastWave[p] = ai5BE6898D_wave4_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/ai5BE6898D.galaxy:242


    AIAttackWaveSend(p, ts, false);
    ai5BE6898D_wave2_lastWave[p] = WaveLastCreated();
    ai5BE6898D_lastWave[p] = ai5BE6898D_wave2_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/ai5BE6898D.galaxy:370


    AIAttackWaveSend(p, ts, false);
    ai5BE6898D_wave3_lastWave[p] = WaveLastCreated();
    ai5BE6898D_lastWave[p] = ai5BE6898D_wave3_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/ai5BE6898D.galaxy:492


    AIAttackWaveSend(p, ts, false);
    ai5BE6898D_wave1_lastWave[p] = WaveLastCreated();
    ai5BE6898D_lastWave[p] = ai5BE6898D_wave1_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/ai96FA581E.galaxy:124


    AIAttackWaveSend(p, ts, false);
    ai96FA581E_wave1_lastWave[p] = WaveLastCreated();
    ai96FA581E_lastWave[p] = ai96FA581E_wave1_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/ai96FA581E.galaxy:243


    AIAttackWaveSend(p, ts, false);
    ai96FA581E_wave3_lastWave[p] = WaveLastCreated();
    ai96FA581E_lastWave[p] = ai96FA581E_wave3_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/ai96FA581E.galaxy:366


    AIAttackWaveSend(p, ts, false);
    ai96FA581E_wave4_lastWave[p] = WaveLastCreated();
    ai96FA581E_lastWave[p] = ai96FA581E_wave4_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/ai96FA581E.galaxy:507


    AIAttackWaveSend(p, ts, false);
    ai96FA581E_wave2_lastWave[p] = WaveLastCreated();
    ai96FA581E_lastWave[p] = ai96FA581E_wave2_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/ai96FA581E.galaxy:653


    AIAttackWaveSend(p, ts, false);
    ai96FA581E_wave5_lastWave[p] = WaveLastCreated();
    ai96FA581E_lastWave[p] = ai96FA581E_wave5_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/ai96FA581E.galaxy:799


    AIAttackWaveSend(p, ts, false);
    ai96FA581E_wave6_lastWave[p] = WaveLastCreated();
    ai96FA581E_lastWave[p] = ai96FA581E_wave6_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/ai96FA581E.galaxy:945


    AIAttackWaveSend(p, ts, false);
    ai96FA581E_wave7_lastWave[p] = WaveLastCreated();
    ai96FA581E_lastWave[p] = ai96FA581E_wave7_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/aiFD078E3C.galaxy:124


    AIAttackWaveSend(p, ts, false);
    aiFD078E3C_wave6_lastWave[p] = WaveLastCreated();
    aiFD078E3C_lastWave[p] = aiFD078E3C_wave6_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/aiFD078E3C.galaxy:248


    AIAttackWaveSend(p, ts, false);
    aiFD078E3C_wave1_lastWave[p] = WaveLastCreated();
    aiFD078E3C_lastWave[p] = aiFD078E3C_wave1_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/aiFD078E3C.galaxy:371


    AIAttackWaveSend(p, ts, false);
    aiFD078E3C_wave2_lastWave[p] = WaveLastCreated();
    aiFD078E3C_lastWave[p] = aiFD078E3C_wave2_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/aiFD078E3C.galaxy:483


    AIAttackWaveSend(p, ts, false);
    aiFD078E3C_wave5_lastWave[p] = WaveLastCreated();
    aiFD078E3C_lastWave[p] = aiFD078E3C_wave5_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/aiFD078E3C.galaxy:606


    AIAttackWaveSend(p, ts, false);
    aiFD078E3C_wave3_lastWave[p] = WaveLastCreated();
    aiFD078E3C_lastWave[p] = aiFD078E3C_wave3_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/aiFD078E3C.galaxy:721


    AIAttackWaveSend(p, ts, false);
    aiFD078E3C_wave4_lastWave[p] = WaveLastCreated();
    aiFD078E3C_lastWave[p] = aiFD078E3C_wave4_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/aiFD078E3C.galaxy:867


    AIAttackWaveSend(p, ts, false);
    aiFD078E3C_wave7_lastWave[p] = WaveLastCreated();
    aiFD078E3C_lastWave[p] = aiFD078E3C_wave7_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/aiFD078E3C.galaxy:1008


    AIAttackWaveSend(p, ts, false);
    aiFD078E3C_wave8_lastWave[p] = WaveLastCreated();
    aiFD078E3C_lastWave[p] = aiFD078E3C_wave8_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/aiFD078E3C.galaxy:1162


    AIAttackWaveSend(p, ts, false);
    aiFD078E3C_wave9_lastWave[p] = WaveLastCreated();
    aiFD078E3C_lastWave[p] = aiFD078E3C_wave9_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:4508

            AIAttackWaveAddWaypoint(gv_pLAYER_04_DOMINION_CLEANSERS, gf_GetDropOffPoint(gv_cleanserTeamTargets[gv_cleanserWaveCount]), true);
            AIAttackWaveSend(gv_pLAYER_04_DOMINION_CLEANSERS, 90, false);
            gv_cleanserWaves[gv_cleanserWaveCount] = WaveLastCreated();
            while (!((UnitGroupCount(UnitGroupFilterRegion(AIWaveGetUnits(gv_cleanserWaves[gv_cleanserWaveCount]), RegionCircle(UnitGetPosition(gv_virophageRecord[ge_VirophageName_VirophageSA1].lv_virophage), 60.0), 0), c_unitCountAlive) > 0))) {
                Wait(1.0, c_timeGame);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:4527

            AIAttackWaveAddWaypoint(gv_pLAYER_04_DOMINION_CLEANSERS, gf_GetDropOffPoint(gv_cleanserTeamTargets[gv_cleanserWaveCount]), true);
            AIAttackWaveSend(gv_pLAYER_04_DOMINION_CLEANSERS, 60, false);
            gv_cleanserWaves[gv_cleanserWaveCount] = WaveLastCreated();
            gf_CleanserPingCreate(gv_cleanserWaveCount);
            TriggerExecute(gt_WarnIfVirophageUnderAttack, true, false);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:4543

            AIAttackWaveAddWaypoint(gv_pLAYER_04_DOMINION_CLEANSERS, gf_GetDropOffPoint(gv_cleanserTeamTargets[gv_cleanserWaveCount]), true);
            AIAttackWaveSend(gv_pLAYER_04_DOMINION_CLEANSERS, 60, false);
            gv_cleanserWaves[gv_cleanserWaveCount] = WaveLastCreated();
            gf_CleanserPingCreate(gv_cleanserWaveCount);
            TriggerExecute(gt_WarnIfVirophageUnderAttack, true, false);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:4560

            AIAttackWaveAddWaypoint(gv_pLAYER_04_DOMINION_CLEANSERS, gf_GetDropOffPoint(gv_cleanserTeamTargets[gv_cleanserWaveCount]), true);
            AIAttackWaveSend(gv_pLAYER_04_DOMINION_CLEANSERS, 60, false);
            gv_cleanserWaves[gv_cleanserWaveCount] = WaveLastCreated();
            gf_CleanserPingCreate(gv_cleanserWaveCount);
            TriggerExecute(gt_WarnIfVirophageUnderAttack, true, false);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:4575

            AIAttackWaveAddWaypoint(gv_pLAYER_04_DOMINION_CLEANSERS, gf_GetDropOffPoint(gv_cleanserTeamTargets[gv_cleanserWaveCount]), true);
            AIAttackWaveSend(gv_pLAYER_04_DOMINION_CLEANSERS, 60, false);
            gv_cleanserWaves[gv_cleanserWaveCount] = WaveLastCreated();
            gf_CleanserPingCreate(gv_cleanserWaveCount);
            TriggerExecute(gt_WarnIfVirophageUnderAttack, true, false);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:4590

            AIAttackWaveAddWaypoint(gv_pLAYER_04_DOMINION_CLEANSERS, gf_GetDropOffPoint(gv_cleanserTeamTargets[gv_cleanserWaveCount]), true);
            AIAttackWaveSend(gv_pLAYER_04_DOMINION_CLEANSERS, 60, false);
            gv_cleanserWaves[gv_cleanserWaveCount] = WaveLastCreated();
            gf_CleanserPingCreate(gv_cleanserWaveCount);
            TriggerExecute(gt_WarnIfVirophageUnderAttack, true, false);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:4606

            AIAttackWaveAddWaypoint(gv_pLAYER_04_DOMINION_CLEANSERS, gf_GetDropOffPoint(gv_cleanserTeamTargets[gv_cleanserWaveCount]), true);
            AIAttackWaveSend(gv_pLAYER_04_DOMINION_CLEANSERS, 60, false);
            gv_cleanserWaves[gv_cleanserWaveCount] = WaveLastCreated();
            gf_CleanserPingCreate(gv_cleanserWaveCount);
            TriggerExecute(gt_WarnIfVirophageUnderAttack, true, false);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:4622

            AIAttackWaveAddWaypoint(gv_pLAYER_04_DOMINION_CLEANSERS, gf_GetDropOffPoint(gv_cleanserTeamTargets[gv_cleanserWaveCount]), true);
            AIAttackWaveSend(gv_pLAYER_04_DOMINION_CLEANSERS, 60, false);
            gv_cleanserWaves[gv_cleanserWaveCount] = WaveLastCreated();
            gf_CleanserPingCreate(gv_cleanserWaveCount);
            TriggerExecute(gt_WarnIfVirophageUnderAttack, true, false);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:4637

            AIAttackWaveAddWaypoint(gv_pLAYER_04_DOMINION_CLEANSERS, gf_GetDropOffPoint(gv_cleanserTeamTargets[gv_cleanserWaveCount]), true);
            AIAttackWaveSend(gv_pLAYER_04_DOMINION_CLEANSERS, 60, false);
            gv_cleanserWaves[gv_cleanserWaveCount] = WaveLastCreated();
            gf_CleanserPingCreate(gv_cleanserWaveCount);
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:4652

            AIAttackWaveAddWaypoint(gv_pLAYER_04_DOMINION_CLEANSERS, gf_GetDropOffPoint(gv_cleanserTeamTargets[gv_cleanserWaveCount]), true);
            AIAttackWaveSend(gv_pLAYER_04_DOMINION_CLEANSERS, 60, false);
            gv_cleanserWaves[gv_cleanserWaveCount] = WaveLastCreated();
            gf_CleanserPingCreate(gv_cleanserWaveCount);
            TriggerExecute(gt_WarnIfVirophageUnderAttack, true, false);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/aiBF035301.galaxy:124


    AIAttackWaveSend(p, ts, false);
    aiBF035301_wave1_lastWave[p] = WaveLastCreated();
    aiBF035301_lastWave[p] = aiBF035301_wave1_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/aiBF035301.galaxy:253


    AIAttackWaveSend(p, ts, false);
    aiBF035301_wave3_lastWave[p] = WaveLastCreated();
    aiBF035301_lastWave[p] = aiBF035301_wave3_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/aiBF035301.galaxy:391


    AIAttackWaveSend(p, ts, false);
    aiBF035301_wave4_lastWave[p] = WaveLastCreated();
    aiBF035301_lastWave[p] = aiBF035301_wave4_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/aiFCA8F95A.galaxy:122


    AIAttackWaveSend(p, ts, false);
    aiFCA8F95A_wave3_lastWave[p] = WaveLastCreated();
    aiFCA8F95A_lastWave[p] = aiFCA8F95A_wave3_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/aiFCA8F95A.galaxy:246


    AIAttackWaveSend(p, ts, false);
    aiFCA8F95A_wave4_lastWave[p] = WaveLastCreated();
    aiFCA8F95A_lastWave[p] = aiFCA8F95A_wave4_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/aiFCA8F95A.galaxy:373


    AIAttackWaveSend(p, ts, false);
    aiFCA8F95A_wave5_lastWave[p] = WaveLastCreated();
    aiFCA8F95A_lastWave[p] = aiFCA8F95A_wave5_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/aiFCA8F95A.galaxy:505


    AIAttackWaveSend(p, ts, false);
    aiFCA8F95A_wave2_lastWave[p] = WaveLastCreated();
    aiFCA8F95A_lastWave[p] = aiFCA8F95A_wave2_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid03.sc2map/MapScript.galaxy:4177

    AIAttackWaveAddUnits3(3, 3, 4, "Zealot");
    AIAttackWaveSend(gv_pLAYER_02_DOMINION22, 300, false);
    gv_firstWave = WaveLastCreated();
    Wait(260.0, c_timeAI);
    gv_crystalDiscoverWait = true;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal01.sc2map/ai6366AE01.galaxy:148


    AIAttackWaveSend(p, ts, false);
    ai6366AE01_wave1_lastWave[p] = WaveLastCreated();
    ai6366AE01_lastWave[p] = ai6366AE01_wave1_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal01.sc2map/ai6366AE01.galaxy:298


    AIAttackWaveSend(p, ts, false);
    ai6366AE01_wave2_lastWave[p] = WaveLastCreated();
    ai6366AE01_lastWave[p] = ai6366AE01_wave2_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal01.sc2map/ai6366AE01.galaxy:446


    AIAttackWaveSend(p, ts, false);
    ai6366AE01_wave3_lastWave[p] = WaveLastCreated();
    ai6366AE01_lastWave[p] = ai6366AE01_wave3_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal01.sc2map/ai6366AE01.galaxy:606


    AIAttackWaveSend(p, ts, false);
    ai6366AE01_wave5_lastWave[p] = WaveLastCreated();
    ai6366AE01_lastWave[p] = ai6366AE01_wave5_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal01.sc2map/ai6366AE01.galaxy:755


    AIAttackWaveSend(p, ts, false);
    ai6366AE01_wave6_lastWave[p] = WaveLastCreated();
    ai6366AE01_lastWave[p] = ai6366AE01_wave6_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal01.sc2map/ai6366AE01.galaxy:904


    AIAttackWaveSend(p, ts, false);
    ai6366AE01_wave7_lastWave[p] = WaveLastCreated();
    ai6366AE01_lastWave[p] = ai6366AE01_wave7_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal01.sc2map/ai6366AE01.galaxy:1064


    AIAttackWaveSend(p, ts, false);
    ai6366AE01_wave4_lastWave[p] = WaveLastCreated();
    ai6366AE01_lastWave[p] = ai6366AE01_wave4_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal01.sc2map/ai6366AE01.galaxy:1222


    AIAttackWaveSend(p, ts, false);
    ai6366AE01_wave8_lastWave[p] = WaveLastCreated();
    ai6366AE01_lastWave[p] = ai6366AE01_wave8_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal01.sc2map/ai6366AE01.galaxy:1382


    AIAttackWaveSend(p, ts, false);
    ai6366AE01_wave9_lastWave[p] = WaveLastCreated();
    ai6366AE01_lastWave[p] = ai6366AE01_wave9_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal01.sc2map/ai8E40AF2E.galaxy:148


    AIAttackWaveSend(p, ts, false);
    ai8E40AF2E_wave8_lastWave[p] = WaveLastCreated();
    ai8E40AF2E_lastWave[p] = ai8E40AF2E_wave8_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal01.sc2map/ai8E40AF2E.galaxy:307


    AIAttackWaveSend(p, ts, false);
    ai8E40AF2E_wave1_lastWave[p] = WaveLastCreated();
    ai8E40AF2E_lastWave[p] = ai8E40AF2E_wave1_lastWave[p];
    Wait(ts, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal01.sc2map/ai8E40AF2E.galaxy:453


    AIAttackWaveSend(p, ts, false);
    ai8E40AF2E_wave4_lastWave[p] = WaveLastCreated();
    ai8E40AF2E_lastWave[p] = ai8E40AF2E_wave4_lastWave[p];
    Wait(ts, c_timeAI);