# Set Objective Priority

Grammar — Set Objective objective Priority to priority
FlagsNative | 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 ] — Objective
  • int — Priority

Returns — void

native void ObjectiveSetPriority(
	int inObjective,
	int inPriority,
);

Category: Objective / Advanced

# Examples

# campaigns/swarm.sc2campaign

MapScript.galaxy

// 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)
// 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)
// L6785
ObjectiveSetPriority(ObjectiveLastCreated(), 3)
// L6879
ObjectiveSetPriority(ObjectiveLastCreated(), 3)
// L6973
ObjectiveSetPriority(ObjectiveLastCreated(), 3)
// L7066
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)
// L6785
ObjectiveSetPriority(ObjectiveLastCreated(), 3)
// L6879
ObjectiveSetPriority(ObjectiveLastCreated(), 3)
// L6973
ObjectiveSetPriority(ObjectiveLastCreated(), 3)
// L7066
ObjectiveSetPriority(ObjectiveLastCreated(), 3)
// L5226
ObjectiveSetPriority(ObjectiveLastCreated(), 1)
// L5226
ObjectiveSetPriority(ObjectiveLastCreated(), 1)