# Destroy All Objectives

Grammar — Destroy all objectives for players
FlagsNative | Action

Destroys all objectives for a player group.

# Arguments

  • playergroup — Players

Returns — void

native void ObjectiveDestroyAll(playergroup inPlayers);

Category: Objective / Advanced

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2map/MapScript.galaxy:1028

    libSwaC_gf_SendTransmissionCampaign(null, "zEvoMission_Baneling|Line00018", c_transmissionDurationAdd, 0.0, true, 1, 0);
    libSwaC_gf_SetAllSoundChannelVolumesCampaign(2);
    ObjectiveDestroyAll(PlayerGroupAll());
    libSwaC_gf_CreateMissionAutosavePoint(StringExternal("Param/Value/1D77B715"));
    CameraSetValue(gv_pLAYER_01_USER, c_cameraValueDistance, (CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance) + 40.0), 2.0, -1, 10.0);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2map/MapScript.galaxy:2994

    TriggerExecute(gt_VictoryMusicCue, true, false);
    libSwaC_gf_SetAllSoundChannelVolumesCampaign(2);
    ObjectiveDestroyAll(PlayerGroupAll());
    CameraSetValue(gv_pLAYER_01_USER, c_cameraValueDistance, (CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance) + 40.0), 2.0, -1, 10.0);
    CameraSetValue(gv_pLAYER_01_USER, c_cameraValuePitch, CameraInfoGetValue(CameraInfoDefault(), c_cameraValuePitch), 2.0, -1, 10.0);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:2602

    gv_impalerImpalerActive = false;
    gv_lurkerLurkerActive = true;
    ObjectiveDestroyAll(PlayerGroupAll());
    libSwaC_gf_AddUnitTypeToUnitHelpPanel("Lurker", false, gv_pLAYER_01_USER);
    TechTreeAbilityAllow(gv_pLAYER_01_USER, AbilityCommand("BurrowLurkerDown", 0), true);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:1916


    TriggerEnable(TriggerGetCurrent(), false);
    ObjectiveDestroyAll(PlayerGroupAll());
    libSwaC_gf_CreateMissionAutosavePoint(StringExternal("Param/Value/D64C04FD"));
    CameraSetValue(gv_pLAYER_01_USER, c_cameraValueDistance, (CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance) + 40.0), 2.0, -1, 10.0);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:4269

    }

    ObjectiveDestroyAll(PlayerGroupAll());
    CameraSetValue(gv_pLAYER_01_USER, c_cameraValueDistance, (CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance) + 40.0), 2.0, -1, 10.0);
    CameraSetValue(gv_pLAYER_01_USER, c_cameraValuePitch, (CameraInfoGetValue(CameraInfoDefault(), c_cameraValuePitch) + 0.0), 2.0, -1, 10.0);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionroach.sc2map/MapScript.galaxy:1602

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerExecute(gt_TransmissionAllProtossDeadQ, true, true);
    ObjectiveDestroyAll(PlayerGroupAll());
    libSwaC_gf_CreateMissionAutosavePoint(StringExternal("Param/Value/495E7A68"));
    TriggerExecute(gt_IntroVileQ, true, false);

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

    libSwaC_gf_SendTransmissionCampaign(null, "zEvoMission_Roach|Line00022", c_transmissionDurationAdd, 0.0, true, 1, 0);
    libSwaC_gf_SetAllSoundChannelVolumesCampaign(2);
    ObjectiveDestroyAll(PlayerGroupAll());
    CameraSetValue(gv_pLAYER_01_USER, c_cameraValueDistance, (CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance) + 40.0), 2.0, -1, 10.0);
    CameraSetValue(gv_pLAYER_01_USER, c_cameraValuePitch, (CameraInfoGetValue(CameraInfoDefault(), c_cameraValuePitch) + 0.0), 2.0, -1, 10.0);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionswarmhost.sc2map/MapScript.galaxy:1191

    gv_backupSuppressed = true;
    TriggerExecute(gt_TransmissionSilosDestroyedQ, true, true);
    ObjectiveDestroyAll(PlayerGroupAll());
    libSwaC_gf_CreateMissionAutosavePoint(StringExternal("Param/Value/F34DE060"));
    CameraSetValue(gv_pLAYER_01_USER, c_cameraValueDistance, (CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance) + 40.0), 2.0, -1, 10.0);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionswarmhost.sc2map/MapScript.galaxy:2837


    gv_gameOver = true;
    ObjectiveDestroyAll(PlayerGroupAll());
    TriggerExecute(gt_VictoryMusicCue, true, false);
    CameraSetValue(gv_pLAYER_01_USER, c_cameraValueDistance, (CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance) + 40.0), 2.0, -1, 10.0);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2mapMapScript.galaxy:1028

    libSwaC_gf_SendTransmissionCampaign(null, "zEvoMission_Baneling|Line00018", c_transmissionDurationAdd, 0.0, true, 1, 0);
    libSwaC_gf_SetAllSoundChannelVolumesCampaign(2);
    ObjectiveDestroyAll(PlayerGroupAll());
    libSwaC_gf_CreateMissionAutosavePoint(StringExternal("Param/Value/1D77B715"));
    CameraSetValue(gv_pLAYER_01_USER, c_cameraValueDistance, (CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance) + 40.0), 2.0, -1, 10.0);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2mapMapScript.galaxy:2994

    TriggerExecute(gt_VictoryMusicCue, true, false);
    libSwaC_gf_SetAllSoundChannelVolumesCampaign(2);
    ObjectiveDestroyAll(PlayerGroupAll());
    CameraSetValue(gv_pLAYER_01_USER, c_cameraValueDistance, (CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance) + 40.0), 2.0, -1, 10.0);
    CameraSetValue(gv_pLAYER_01_USER, c_cameraValuePitch, CameraInfoGetValue(CameraInfoDefault(), c_cameraValuePitch), 2.0, -1, 10.0);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2mapMapScript.galaxy:2602

    gv_impalerImpalerActive = false;
    gv_lurkerLurkerActive = true;
    ObjectiveDestroyAll(PlayerGroupAll());
    libSwaC_gf_AddUnitTypeToUnitHelpPanel("Lurker", false, gv_pLAYER_01_USER);
    TechTreeAbilityAllow(gv_pLAYER_01_USER, AbilityCommand("BurrowLurkerDown", 0), true);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2mapMapScript.galaxy:1916


    TriggerEnable(TriggerGetCurrent(), false);
    ObjectiveDestroyAll(PlayerGroupAll());
    libSwaC_gf_CreateMissionAutosavePoint(StringExternal("Param/Value/D64C04FD"));
    CameraSetValue(gv_pLAYER_01_USER, c_cameraValueDistance, (CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance) + 40.0), 2.0, -1, 10.0);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2mapMapScript.galaxy:4269

    }

    ObjectiveDestroyAll(PlayerGroupAll());
    CameraSetValue(gv_pLAYER_01_USER, c_cameraValueDistance, (CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance) + 40.0), 2.0, -1, 10.0);
    CameraSetValue(gv_pLAYER_01_USER, c_cameraValuePitch, (CameraInfoGetValue(CameraInfoDefault(), c_cameraValuePitch) + 0.0), 2.0, -1, 10.0);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionroach.sc2mapMapScript.galaxy:1602

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerExecute(gt_TransmissionAllProtossDeadQ, true, true);
    ObjectiveDestroyAll(PlayerGroupAll());
    libSwaC_gf_CreateMissionAutosavePoint(StringExternal("Param/Value/495E7A68"));
    TriggerExecute(gt_IntroVileQ, true, false);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionroach.sc2mapMapScript.galaxy:3511

    libSwaC_gf_SendTransmissionCampaign(null, "zEvoMission_Roach|Line00022", c_transmissionDurationAdd, 0.0, true, 1, 0);
    libSwaC_gf_SetAllSoundChannelVolumesCampaign(2);
    ObjectiveDestroyAll(PlayerGroupAll());
    CameraSetValue(gv_pLAYER_01_USER, c_cameraValueDistance, (CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance) + 40.0), 2.0, -1, 10.0);
    CameraSetValue(gv_pLAYER_01_USER, c_cameraValuePitch, (CameraInfoGetValue(CameraInfoDefault(), c_cameraValuePitch) + 0.0), 2.0, -1, 10.0);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionswarmhost.sc2mapMapScript.galaxy:1191

    gv_backupSuppressed = true;
    TriggerExecute(gt_TransmissionSilosDestroyedQ, true, true);
    ObjectiveDestroyAll(PlayerGroupAll());
    libSwaC_gf_CreateMissionAutosavePoint(StringExternal("Param/Value/F34DE060"));
    CameraSetValue(gv_pLAYER_01_USER, c_cameraValueDistance, (CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance) + 40.0), 2.0, -1, 10.0);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionswarmhost.sc2mapMapScript.galaxy:2837


    gv_gameOver = true;
    ObjectiveDestroyAll(PlayerGroupAll());
    TriggerExecute(gt_VictoryMusicCue, true, false);
    CameraSetValue(gv_pLAYER_01_USER, c_cameraValueDistance, (CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance) + 40.0), 2.0, -1, 10.0);