# 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
- [F] —
void
— Set Objective Priority — ( ObjectiveSetPriority ) - [F] —
void
— Set Objective Description — ( ObjectiveSetDescription ) - [F] —
void
— Set Objective Players — ( ObjectiveSetPlayerGroup ) - [F] —
void
— Set Objective Text — ( ObjectiveSetName ) - [F] —
void
— Set Objective Type — ( ObjectiveSetPrimary ) - [F] —
void
— Move Objective to Beginning — ( ObjectiveSetLast ) - [F] —
void
— Move Objective to End — ( ObjectiveSetFirst ) - [F] —
void
— Move Objective to after Objective — ( ObjectiveSetAfter ) - [F] —
void
— Move Objective to before Objective — ( ObjectiveSetBefore ) - [F] —
text
— Objective Text — ( ObjectiveGetName ) - [F] —
text
— Objective Description — ( ObjectiveGetDescription ) - [F] —
playergroup
— Objective Players — ( ObjectiveGetPlayerGroup ) - [F] —
bool
— Objective Primary — ( ObjectiveGetPrimary ) - [F] —
int
— Objective Priority — ( ObjectiveGetPriority ) - [F] —
void
— Destroy Objective — ( ObjectiveDestroy ) - [F] —
void
— Destroy All Objectives — ( ObjectiveDestroyAll )
# Examples
# campaigns/swarm.sc2campaign
// L8475
ObjectiveSetBefore(ObjectiveLastCreated(), gv_objective_ZeratulMustSurvive)
// L8475
ObjectiveSetBefore(ObjectiveLastCreated(), gv_objective_ZeratulMustSurvive)
// L9043
ObjectiveSetBefore(gv_objectiveDestroyZergBase5, gv_objectiveDestroyZergBase3)
// L9103
ObjectiveSetBefore(gv_objectiveDestroyZergBase2, gv_objectiveDestroyZergBase3)
// L9163
ObjectiveSetBefore(gv_objectiveDestroyZergBase4, gv_objectiveDestroyZergBase3)
// L9043
ObjectiveSetBefore(gv_objectiveDestroyZergBase5, gv_objectiveDestroyZergBase3)
// L9103
ObjectiveSetBefore(gv_objectiveDestroyZergBase2, gv_objectiveDestroyZergBase3)
// L9163
ObjectiveSetBefore(gv_objectiveDestroyZergBase4, gv_objectiveDestroyZergBase3)