# Move Objective to after Objective

Grammar — Move Objective objective after Objective afterObjective
FlagsNative | Action

# Arguments

  • int<objective> — Objective
  • int<objective> — After Objective

Returns — void

native void ObjectiveSetAfter(
	int inObjective,
	int inAfterObjective,
);

Category: Objective / Advanced

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map/MapScript.galaxy:8416

    libA3DDD02B_gf_CreateObjectiveCampaign("PPrologue03Primary02");
    gv_objective_DestroyCatalyst = ObjectiveLastCreated();
    ObjectiveSetAfter(ObjectiveLastCreated(), gv_objective_InvestigateTemple);
    Wait(libA3DDD02B_gv_campaignObjectiveDelay, c_timeReal);
    return true;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2mapMapScript.galaxy:8416

    libA3DDD02B_gf_CreateObjectiveCampaign("PPrologue03Primary02");
    gv_objective_DestroyCatalyst = ObjectiveLastCreated();
    ObjectiveSetAfter(ObjectiveLastCreated(), gv_objective_InvestigateTemple);
    Wait(libA3DDD02B_gv_campaignObjectiveDelay, c_timeReal);
    return true;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pshakuras02.sc2map/MapScript.galaxy:4786

    libVCMI_gf_CreateObjectiveCampaign("PShakuras02Primary03");
    gv_objectiveDestroyZergBase3 = ObjectiveLastCreated();
    ObjectiveSetAfter(gv_objectiveDestroyZergBase3, gv_objectiveDestroyZergBase);
    Wait(libVCMI_gv_campaignObjectiveDelay, c_timeReal);
    return true;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras02.sc2mapMapScript.galaxy:4786

    libVCMI_gf_CreateObjectiveCampaign("PShakuras02Primary03");
    gv_objectiveDestroyZergBase3 = ObjectiveLastCreated();
    ObjectiveSetAfter(gv_objectiveDestroyZergBase3, gv_objectiveDestroyZergBase);
    Wait(libVCMI_gv_campaignObjectiveDelay, c_timeReal);
    return true;