# Move Objective to before Objective

Grammar — Move Objective objective before Objective beforeObjective
FlagsNative | Action

# Arguments

  • int<objective> — Objective
  • int<objective> — Before Objective

Returns — void

native void ObjectiveSetBefore(
	int inObjective,
	int inBeforeObjective,
);

Category: Objective / Advanced

# Examples

campaigns/swarm.sc2campaignbase.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.sc2mapMapScript.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.galaxy:9171

    libCMMI_gf_CreateObjectiveCampaign("Nova01Primary04");
    gv_objectiveDestroyZergBase4 = ObjectiveLastCreated();
    ObjectiveSetBefore(gv_objectiveDestroyZergBase4, gv_objectiveDestroyZergBase3);
    Wait(libNCMI_gv_campaignObjectiveDelay, c_timeReal);
    return true;