# Set Objective State

Grammar — Mark objective as state
FlagsNative | Action

Sets the state of an objective.

# Arguments

  • int [ objective ] — Objective
  • int [ preset::ObjectiveState ] — State

Returns — void

native void ObjectiveSetState(
	int inObjective,
	int inState,
);

Category: Objective / Basic

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L5013
ObjectiveSetState(gv_objective_DontLetColonistsDie, c_objectiveStateFailed)
// L5325
ObjectiveSetState(gv_objective_ReachHanson, c_objectiveStateActive)
// L5359
ObjectiveSetState(gv_objective_ReachHanson, c_objectiveStateCompleted)
// L5425
ObjectiveSetState(gv_objective_SaveColonists, c_objectiveStateActive)
// L5455
ObjectiveSetState(gv_objective_SaveColonists, c_objectiveStateCompleted)
// L5457
ObjectiveSetState(gv_objective_DontLetColonistsDie, c_objectiveStateCompleted)
// L5563
ObjectiveSetState(gv_bonusObjectiveCollectChrysalis, c_objectiveStateCompleted)
// L4537
ObjectiveSetState(gv_objectiveCleanseInfestation, c_objectiveStateCompleted)
// L4664
ObjectiveSetState(gv_researchObjectiveKilltheInfestors, c_objectiveStateCompleted)
// L5523
ObjectiveSetState(gv_primaryObjectiveDestroyProtossNexus, c_objectiveStateCompleted)
// L5612
ObjectiveSetState(gv_primaryObjectiveDestroyPurifier, c_objectiveStateCompleted)
// L5671
ObjectiveSetState(gv_bonusObjectiveDestroyFirstTerrorFleet, c_objectiveStateCompleted)
// L5704
ObjectiveSetState(gv_bonusObjectiveDestroyFirstTerrorFleet, c_objectiveStateFailed)
// L5762
ObjectiveSetState(gv_bonusObjectiveDestroySecondTerrorFleet, c_objectiveStateCompleted)
// L5795
ObjectiveSetState(gv_bonusObjectiveDestroySecondTerrorFleet, c_objectiveStateFailed)
// L5853
ObjectiveSetState(gv_bonusObjectiveDestroyThirdTerrorFleet, c_objectiveStateCompleted)
// L5886
ObjectiveSetState(gv_bonusObjectiveDestroyThirdTerrorFleet, c_objectiveStateFailed)
// L3868
ObjectiveSetState(gv_objectiveDestroyInfestation, c_objectiveStateCompleted)
// L5277
ObjectiveSetState(gv_objective_TheGreatTrainRobbery, c_objectiveStateCompleted)
// L5346
ObjectiveSetState(gv_objective_DontMissTrains, c_objectiveStateCompleted)
// L5374
ObjectiveSetState(gv_objective_DontMissTrains, c_objectiveStateFailed)
// L5434
ObjectiveSetState(gv_objective_Locate, c_objectiveStateActive)
// L5462
ObjectiveSetState(gv_objective_Locate, c_objectiveStateCompleted)
// L5525
ObjectiveSetState(gv_objective_DefilerSkeletons, c_objectiveStateCompleted)
// L4775
ObjectiveSetState(gv_primaryObjectiveBuyContract, c_objectiveStateCompleted)
// L4866
ObjectiveSetState(gv_primaryObjectiveDestroyOrlan, c_objectiveStateCompleted)
// L4896
ObjectiveSetState(gv_primaryObjectiveDestroyOrlan, c_objectiveStateFailed)
// L5002
ObjectiveSetState(gv_bonusObjectiveFindContraband, c_objectiveStateCompleted)
// L5032
ObjectiveSetState(gv_bonusObjectiveFindContraband, c_objectiveStateFailed)
// L1231
ObjectiveSetState(gv_objectiveStealTheOdin, c_objectiveStateHidden)
// L1232
ObjectiveSetState(gv_objectiveTychusMustSurvive, c_objectiveStateHidden)
// L4712
ObjectiveSetState(gv_objectiveStealTheOdin, c_objectiveStateCompleted)
// L4713
ObjectiveSetState(gv_objectiveTychusMustSurvive, c_objectiveStateCompleted)
// L4735
ObjectiveSetState(gv_objectiveTychusMustSurvive, c_objectiveStateFailed)
// L4798
ObjectiveSetState(gv_objectiveDestroyDominionBases, c_objectiveStateCompleted)
// L4799
ObjectiveSetState(gv_objectiveOdinMustSurvive, c_objectiveStateCompleted)
// L4885
ObjectiveSetState(gv_objectiveDestroytheLoki, c_objectiveStateCompleted)
// L4907
ObjectiveSetState(gv_objectiveDestroytheLoki, c_objectiveStateFailed)
// L5004
ObjectiveSetState(gv_objectiveDevourerSamples, c_objectiveStateCompleted)
// L5704
ObjectiveSetState(gv_objectiveDestroyDominionForces, c_objectiveStateCompleted)
// L5807
ObjectiveSetState(gv_objectiveAccessTower1, c_objectiveStateCompleted)
// L5836
ObjectiveSetState(gv_objectiveAccessTower2, c_objectiveStateCompleted)
// L5865
ObjectiveSetState(gv_objectiveAccessTower3, c_objectiveStateCompleted)
// L10452
ObjectiveSetState(gv_objectiveInvestigate, c_objectiveStateCompleted)
// L10481
ObjectiveSetState(gv_objectiveInvestigate, c_objectiveStateFailed)
// L10539
ObjectiveSetState(gv_objectiveFusionReactor, c_objectiveStateCompleted)
// L10568
ObjectiveSetState(gv_objectiveFusionReactor, c_objectiveStateFailed)
// L10659
ObjectiveSetState(gv_objectiveRaynorSurvive, c_objectiveStateCompleted)
// L10715
ObjectiveSetState(gv_objectiveEscape, c_objectiveStateCompleted)
// L10744
ObjectiveSetState(gv_objectiveEscape, c_objectiveStateFailed)
// L10819
ObjectiveSetState(gv_researchObjectiveBrutalisk, c_objectiveStateCompleted)
// L10933
ObjectiveSetState(gv_objectiveProtossRelics, c_objectiveStateCompleted)
// L10963
ObjectiveSetState(gv_objectiveProtossRelics, c_objectiveStateFailed)
// L4389
ObjectiveSetState(gv_objectiveDestroyLogisticalHQ, c_objectiveStateCompleted)
// L4450
ObjectiveSetState(gv_objectiveRaynorMustLIVE, c_objectiveStateCompleted)
// L4509
ObjectiveSetState(gv_objectiveDestroyDominionHoloboards, c_objectiveStateCompleted)
// L4485
ObjectiveSetState(gv_objectiveDominionBase, c_objectiveStateCompleted)
// L4580
ObjectiveSetState(gv_objectiveRebels, c_objectiveStateCompleted)
// L4613
ObjectiveSetState(gv_objectiveRebels, c_objectiveStateFailed)
// L4466
ObjectiveSetState(gv_objectiveHoldOut, c_objectiveStateCompleted)
// L4527
ObjectiveSetState(gv_objectiveRescue, c_objectiveStateCompleted)
// L4564
ObjectiveSetState(gv_objectiveRescue, c_objectiveStateFailed)
// L4552
ObjectiveSetState(gv_objectiveCollect, c_objectiveStateCompleted)
// L4613
ObjectiveSetState(gv_objectiveRescue, c_objectiveStateCompleted)
// L4687
ObjectiveSetState(gv_researchObjectiveKilltheBrutalisk, c_objectiveStateCompleted)
// L3775
ObjectiveSetState(gv_primaryObjectiveGetGas, c_objectiveStateCompleted)
// L3776
ObjectiveSetState(gv_primaryObjectiveStopProtossGas, c_objectiveStateCompleted)
// L3899
ObjectiveSetState(gv_bonusObjectiveCollectRelics, c_objectiveStateCompleted)
// L4811
ObjectiveSetState(gv_objectiveClearMainPrison, c_objectiveStateCompleted)
// L4812
ObjectiveSetState(gv_objectiveToshMustSurvive, c_objectiveStateCompleted)
// L4901
ObjectiveSetState(gv_objectiveCellBlock_A, c_objectiveStateCompleted)
// L4964
ObjectiveSetState(gv_objectiveCellBlock_B, c_objectiveStateCompleted)
// L5258
ObjectiveSetState(gv_objectiveDestroyMineralDepot, c_objectiveStateCompleted)
// L5288
ObjectiveSetState(gv_objectiveDestroyMineralDepot, c_objectiveStateCompleted)
// L5289
ObjectiveSetState(gv_objectiveDestroyTerrazineRefinery, c_objectiveStateCompleted)
// L5318
ObjectiveSetState(gv_objectiveDestroyMineralDepot, c_objectiveStateCompleted)
// L5319
ObjectiveSetState(gv_objectiveDestroyTerrazineRefinery, c_objectiveStateCompleted)
// L5320
ObjectiveSetState(gv_objectiveDestroyPsiIndoctrinator, c_objectiveStateCompleted)
// L5406
ObjectiveSetState(gv_objectiveNovaMustSurvive, c_objectiveStateCompleted)
// L5514
ObjectiveSetState(gv_objectiveKillSpectres, c_objectiveStateCompleted)
// L1953
ObjectiveSetState(gv_objectiveUserInterface, c_objectiveStateCompleted)
// L2343
ObjectiveSetState(gv_objectiveCamera01, c_objectiveStateCompleted)
// L2596
ObjectiveSetState(gv_objectiveCamera02, c_objectiveStateCompleted)
// L2918
ObjectiveSetState(gv_objectiveMovement01, c_objectiveStateCompleted)
// L3171
ObjectiveSetState(gv_objectiveMovement02, c_objectiveStateCompleted)
// L3379
ObjectiveSetState(gv_objectiveMovement03, c_objectiveStateCompleted)
// L3656
ObjectiveSetState(gv_objectiveMovement04, c_objectiveStateCompleted)
// L4002
ObjectiveSetState(gv_objectiveMovement05, c_objectiveStateCompleted)
// L4404
ObjectiveSetState(gv_objectiveCombat01, c_objectiveStateFailed)
// L4502
ObjectiveSetState(gv_objectiveCombat01, c_objectiveStateCompleted)
// L4163
ObjectiveSetState(gv_objective_GetToTheArtifact, c_objectiveStateActive)
// L4195
ObjectiveSetState(gv_objective_GetToTheArtifact, c_objectiveStateCompleted)
// L4257
ObjectiveSetState(gv_objective_DestroytheStatues, c_objectiveStateActive)
// L4289
ObjectiveSetState(gv_objective_DestroytheStatues, c_objectiveStateCompleted)
// L4441
ObjectiveSetState(gv_objective_Relics, c_objectiveStateCompleted)
// L4699
ObjectiveSetState(gv_primaryObjectiveExplorePreviousExpedition, c_objectiveStateCompleted)
// L4788
ObjectiveSetState(gv_primaryObjectiveMeltOpenTemple, c_objectiveStateCompleted)
// L4789
ObjectiveSetState(gv_primaryObjectiveLaserDrillMustSurvive, c_objectiveStateCompleted)
// L4888
ObjectiveSetState(gv_bonusObjectiveCollectRelics, c_objectiveStateCompleted)
// L5836
ObjectiveSetState(gv_objectiveDestroyDataz, c_objectiveStateActive)