# Move Objective to after Objective
Grammar — Move Objective objective after Objective afterObjective
Flags —Native|Action
# Arguments
int<objective> — Objectiveint<objective> — After Objective
Returns — void
native void ObjectiveSetAfter(
int inObjective,
int inAfterObjective,
);
# 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: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.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/void.sc2campaign — base.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.sc2map — MapScript.galaxy:4786
libVCMI_gf_CreateObjectiveCampaign("PShakuras02Primary03");
gv_objectiveDestroyZergBase3 = ObjectiveLastCreated();
ObjectiveSetAfter(gv_objectiveDestroyZergBase3, gv_objectiveDestroyZergBase);
Wait(libVCMI_gv_campaignObjectiveDelay, c_timeReal);
return true;