# Move Objective to before Objective
Grammar — Move Objective objective before Objective beforeObjective
Flags —Native
|Action
# Arguments
int
<objective> — Objectiveint
<objective> — Before Objective
Returns — void
native void ObjectiveSetBefore(
int inObjective,
int inBeforeObjective,
);
# 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/voidprologue/voidprologue03.sc2map/MapScript.galaxy:8475
libA3DDD02B_gf_CreateObjectiveCampaign("PPrologue03Primary04");
gv_objective_Escape = ObjectiveLastCreated();
ObjectiveSetBefore(ObjectiveLastCreated(), gv_objective_ZeratulMustSurvive);
Wait(libA3DDD02B_gv_campaignObjectiveDelay, c_timeReal);
return true;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map — MapScript.galaxy:8475
libA3DDD02B_gf_CreateObjectiveCampaign("PPrologue03Primary04");
gv_objective_Escape = ObjectiveLastCreated();
ObjectiveSetBefore(ObjectiveLastCreated(), gv_objective_ZeratulMustSurvive);
Wait(libA3DDD02B_gv_campaignObjectiveDelay, c_timeReal);
return true;
mods/novastoryassets.sc2mod — base.sc2maps/maps/campaign/nova/nova01.sc2map/MapScript.galaxy:9051
libCMMI_gf_CreateObjectiveCampaign("Nova01Primary02");
gv_objectiveDestroyZergBase5 = ObjectiveLastCreated();
ObjectiveSetBefore(gv_objectiveDestroyZergBase5, gv_objectiveDestroyZergBase3);
Wait(libNCMI_gv_campaignObjectiveDelay, c_timeReal);
return true;
mods/novastoryassets.sc2mod — base.sc2maps/maps/campaign/nova/nova01.sc2map/MapScript.galaxy:9111
libCMMI_gf_CreateObjectiveCampaign("Nova01Primary03");
gv_objectiveDestroyZergBase2 = ObjectiveLastCreated();
ObjectiveSetBefore(gv_objectiveDestroyZergBase2, gv_objectiveDestroyZergBase3);
Wait(libNCMI_gv_campaignObjectiveDelay, c_timeReal);
return true;
mods/novastoryassets.sc2mod — base.sc2maps/maps/campaign/nova/nova01.sc2map/MapScript.galaxy:9171
libCMMI_gf_CreateObjectiveCampaign("Nova01Primary04");
gv_objectiveDestroyZergBase4 = ObjectiveLastCreated();
ObjectiveSetBefore(gv_objectiveDestroyZergBase4, gv_objectiveDestroyZergBase3);
Wait(libNCMI_gv_campaignObjectiveDelay, c_timeReal);
return true;
mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova01.sc2map — MapScript.galaxy:9051
libCMMI_gf_CreateObjectiveCampaign("Nova01Primary02");
gv_objectiveDestroyZergBase5 = ObjectiveLastCreated();
ObjectiveSetBefore(gv_objectiveDestroyZergBase5, gv_objectiveDestroyZergBase3);
Wait(libNCMI_gv_campaignObjectiveDelay, c_timeReal);
return true;
mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova01.sc2map — MapScript.galaxy:9111
libCMMI_gf_CreateObjectiveCampaign("Nova01Primary03");
gv_objectiveDestroyZergBase2 = ObjectiveLastCreated();
ObjectiveSetBefore(gv_objectiveDestroyZergBase2, gv_objectiveDestroyZergBase3);
Wait(libNCMI_gv_campaignObjectiveDelay, c_timeReal);
return true;
mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova01.sc2map — MapScript.galaxy:9171
libCMMI_gf_CreateObjectiveCampaign("Nova01Primary04");
gv_objectiveDestroyZergBase4 = ObjectiveLastCreated();
ObjectiveSetBefore(gv_objectiveDestroyZergBase4, gv_objectiveDestroyZergBase3);
Wait(libNCMI_gv_campaignObjectiveDelay, c_timeReal);
return true;