# Destroy All Objectives
Grammar — Destroy all objectives for players
Flags —Native
|Action
Destroys all objectives for a player group.
# Arguments
playergroup
— Players
Returns — void
native void ObjectiveDestroyAll(playergroup inPlayers);
# Related
Category: Objective / Advanced
- Set Objective Priority —
void
— ObjectiveSetPriority - Set Objective Description —
void
— ObjectiveSetDescription - Set Objective Players —
void
— ObjectiveSetPlayerGroup - Set Objective Text —
void
— ObjectiveSetName - Set Objective Type —
void
— ObjectiveSetPrimary - Move Objective to Beginning —
void
— ObjectiveSetLast - Move Objective to End —
void
— ObjectiveSetFirst - Move Objective to after Objective —
void
— ObjectiveSetAfter - Move Objective to before Objective —
void
— ObjectiveSetBefore - Objective Text —
text
— ObjectiveGetName - Objective Description —
text
— ObjectiveGetDescription - Objective Players —
playergroup
— ObjectiveGetPlayerGroup - Objective Primary —
bool
— ObjectiveGetPrimary - Objective Priority —
int
— ObjectiveGetPriority - Destroy Objective —
void
— ObjectiveDestroy - Destroy All Objectives —
void
— ObjectiveDestroyAll
# Examples
campaigns/swarm.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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);