# Set Objective Priority
Grammar — Set Objective objective Priority to priority
Flags —Native
|Action
Determines which order objectives will display in. Larger priorities will appear higher in the list. The default priority for an objective is -1.
# Arguments
int
[ objective ] — Objectiveint
— Priority
Returns — void
native void ObjectiveSetPriority(
int inObjective,
int inPriority,
);
# 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
// L5227
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L5315
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L7618
ObjectiveSetPriority(gv_objectiveDestroyDominionBase22, 1)
// L7734
ObjectiveSetPriority(gv_objectiveDestroyDominionBase222, 0)
// L3687
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L3746
ObjectiveSetPriority(ObjectiveLastCreated(), 2)
// L3805
ObjectiveSetPriority(ObjectiveLastCreated(), 0)
// L10481
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L10568
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L10655
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L10742
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L10829
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L10916
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L11003
ObjectiveSetPriority(ObjectiveLastCreated(), 0)
// L5609
ObjectiveSetPriority(ObjectiveLastCreated(), 3)
// L5698
ObjectiveSetPriority(ObjectiveLastCreated(), 2)
// L5783
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L7183
ObjectiveSetPriority(ObjectiveLastCreated(), -1)
// L4879
ObjectiveSetPriority(ObjectiveLastCreated(), 2)
// L4938
ObjectiveSetPriority(ObjectiveLastCreated(), 3)
// L5025
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L7618
ObjectiveSetPriority(gv_objectiveDestroyDominionBase22, 1)
// L7734
ObjectiveSetPriority(gv_objectiveDestroyDominionBase222, 0)
// L3687
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L3746
ObjectiveSetPriority(ObjectiveLastCreated(), 2)
// L3805
ObjectiveSetPriority(ObjectiveLastCreated(), 0)
// L10481
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L10568
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L10655
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L10742
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L10829
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L10916
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L11003
ObjectiveSetPriority(ObjectiveLastCreated(), 0)
// L5609
ObjectiveSetPriority(ObjectiveLastCreated(), 3)
// L5698
ObjectiveSetPriority(ObjectiveLastCreated(), 2)
// L5783
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L7183
ObjectiveSetPriority(ObjectiveLastCreated(), -1)
// L4879
ObjectiveSetPriority(ObjectiveLastCreated(), 2)
// L4938
ObjectiveSetPriority(ObjectiveLastCreated(), 3)
// L5025
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L5227
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L5315
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L6170
ObjectiveSetPriority(gv_objective_ReachNexus, 1)
// L6229
ObjectiveSetPriority(gv_objective_ReachTemplar, 1)
// L6288
ObjectiveSetPriority(gv_objective_ReachArtanis, 1)
// L6348
ObjectiveSetPriority(gv_objective_ZeratulMustSurvive, 0)
// L9097
ObjectiveSetPriority(ObjectiveLastCreated(), 2)
// L9243
ObjectiveSetPriority(ObjectiveLastCreated(), 3)
// L9306
ObjectiveSetPriority(ObjectiveLastCreated(), 2)
// L9462
ObjectiveSetPriority(ObjectiveLastCreated(), 2)
// L5458
ObjectiveSetPriority(gv_objectiveDestroyZergBase4, 2)
// L6778
ObjectiveSetPriority(ObjectiveLastCreated(), 3)
// L6872
ObjectiveSetPriority(ObjectiveLastCreated(), 3)
// L6966
ObjectiveSetPriority(ObjectiveLastCreated(), 3)
// L7059
ObjectiveSetPriority(ObjectiveLastCreated(), 3)
// L6170
ObjectiveSetPriority(gv_objective_ReachNexus, 1)
// L6229
ObjectiveSetPriority(gv_objective_ReachTemplar, 1)
// L6288
ObjectiveSetPriority(gv_objective_ReachArtanis, 1)
// L6348
ObjectiveSetPriority(gv_objective_ZeratulMustSurvive, 0)
// L9097
ObjectiveSetPriority(ObjectiveLastCreated(), 2)
// L9243
ObjectiveSetPriority(ObjectiveLastCreated(), 3)
// L9306
ObjectiveSetPriority(ObjectiveLastCreated(), 2)
// L9462
ObjectiveSetPriority(ObjectiveLastCreated(), 2)
// L5458
ObjectiveSetPriority(gv_objectiveDestroyZergBase4, 2)
// L6778
ObjectiveSetPriority(ObjectiveLastCreated(), 3)
// L6872
ObjectiveSetPriority(ObjectiveLastCreated(), 3)
// L6966
ObjectiveSetPriority(ObjectiveLastCreated(), 3)
// L7059
ObjectiveSetPriority(ObjectiveLastCreated(), 3)
// L5226
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L5226
ObjectiveSetPriority(ObjectiveLastCreated(), 1)