# Objective State

Grammarobjective state
FlagsNative | Function

Returns the state of an objective.

# Arguments

  • int [ objective ] — Objective

Returns — int [ preset::ObjectiveState ]

native int ObjectiveGetState(int inObjective);

Category: Objective / Basic

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L5157
ObjectiveGetState(gv_objective_ReachHanson)
// L5157
ObjectiveGetState(gv_objective_SaveColonists)
// L5157
ObjectiveGetState(gv_bonusObjectiveCollectChrysalis)
// L5161
ObjectiveGetState(gv_objective_ReachHanson)
// L5161
ObjectiveGetState(gv_objective_SaveColonists)
// L5161
ObjectiveGetState(gv_objective_DontLetColonistsDie)
// L5161
ObjectiveGetState(gv_bonusObjectiveCollectChrysalis)
// L4305
ObjectiveGetState(gv_objectiveCleanseInfestation)
// L4305
ObjectiveGetState(gv_researchObjectiveKilltheInfestors)
// L5294
ObjectiveGetState(gv_primaryObjectiveDestroyProtossNexus)
// L5294
ObjectiveGetState(gv_primaryObjectiveDestroyPurifier)
// L5294
ObjectiveGetState(gv_bonusObjectiveDestroyFirstTerrorFleet)
// L5294
ObjectiveGetState(gv_bonusObjectiveDestroyFirstTerrorFleet)
// L5294
ObjectiveGetState(gv_bonusObjectiveDestroySecondTerrorFleet)
// L5294
ObjectiveGetState(gv_bonusObjectiveDestroySecondTerrorFleet)
// L5294
ObjectiveGetState(gv_bonusObjectiveDestroyThirdTerrorFleet)
// L5294
ObjectiveGetState(gv_bonusObjectiveDestroyThirdTerrorFleet)
// L3545
ObjectiveGetState(gv_objectiveDestroyInfestation)
// L5042
ObjectiveGetState(gv_objective_TheGreatTrainRobbery)
// L5042
ObjectiveGetState(gv_objective_Locate)
// L5042
ObjectiveGetState(gv_objective_DefilerSkeletons)
// L5042
ObjectiveGetState(gv_objective_DontMissTrains)
// L4484
ObjectiveGetState(gv_primaryObjectiveBuyContract)
// L4515
ObjectiveGetState(gv_primaryObjectiveBuyContract)
// L4515
ObjectiveGetState(gv_primaryObjectiveDestroyOrlan)
// L4515
ObjectiveGetState(gv_bonusObjectiveFindContraband)
// L4464
ObjectiveGetState(gv_objectiveDestroyDominionBases)
// L4464
ObjectiveGetState(gv_objectiveDestroytheLoki)
// L4464
ObjectiveGetState(gv_objectiveDevourerSamples)
// L4596
ObjectiveGetState(gv_objectiveAccessTower1)
// L4596
ObjectiveGetState(gv_objectiveAccessTower2)
// L4596
ObjectiveGetState(gv_objectiveAccessTower3)
// L10253
ObjectiveGetState(gv_objectiveFusionReactor)
// L10253
ObjectiveGetState(gv_objectiveEscape)
// L10253
ObjectiveGetState(gv_objectiveProtossRelics)
// L10253
ObjectiveGetState(gv_researchObjectiveBrutalisk)
// L10817
ObjectiveGetState(gv_researchObjectiveBrutalisk)
// L4147
ObjectiveGetState(gv_objectiveDestroyLogisticalHQ)
// L4147
ObjectiveGetState(gv_objectiveDestroyDominionHoloboards)
// L4147
ObjectiveGetState(gv_objectiveRaynorMustLIVE)
// L1695
ObjectiveGetState(gv_objectiveRebels)
// L1695
ObjectiveGetState(gv_objectiveRebels)
// L1889
ObjectiveGetState(gv_objectiveRebels)
// L1894
ObjectiveGetState(gv_objectiveRebels)
// L1928
ObjectiveGetState(gv_objectiveDominionBase)
// L2001
ObjectiveGetState(gv_objectiveDominionBase)
// L2101
ObjectiveGetState(gv_objectiveRebels)
// L2157
ObjectiveGetState(gv_objectiveRebels)
// L2213
ObjectiveGetState(gv_objectiveRebels)
// L2269
ObjectiveGetState(gv_objectiveRebels)
// L4274
ObjectiveGetState(gv_objectiveHoldOut)
// L4274
ObjectiveGetState(gv_objectiveRescue)
// L4357
ObjectiveGetState(gv_objectiveCollect)
// L4357
ObjectiveGetState(gv_objectiveRescue)
// L4357
ObjectiveGetState(gv_researchObjectiveKilltheBrutalisk)
// L3537
ObjectiveGetState(gv_primaryObjectiveGetGas)
// L3537
ObjectiveGetState(gv_primaryObjectiveStopProtossGas)
// L3537
ObjectiveGetState(gv_bonusObjectiveCollectRelics)
// L4559
ObjectiveGetState(gv_objectiveCellBlock_A)
// L4559
ObjectiveGetState(gv_objectiveCellBlock_B)
// L4559
ObjectiveGetState(gv_objectiveClearMainPrison)
// L4559
ObjectiveGetState(gv_objectiveToshMustSurvive)
// L4966
ObjectiveGetState(gv_objectiveDestroyMineralDepot)
// L4966
ObjectiveGetState(gv_objectiveDestroyPsiIndoctrinator)
// L4966
ObjectiveGetState(gv_objectiveDestroyTerrazineRefinery)
// L4966
ObjectiveGetState(gv_objectiveKillSpectres)
// L4966
ObjectiveGetState(gv_objectiveNovaMustSurvive)
// L2037
ObjectiveGetState(gv_objectiveCamera01)
// L2402
ObjectiveGetState(gv_objectiveCamera02)
// L2734
ObjectiveGetState(gv_objectiveMovement01)
// L2948
ObjectiveGetState(gv_objectiveMovement02)
// L2982
ObjectiveGetState(gv_objectiveMovement02)
// L3469
ObjectiveGetState(gv_objectiveMovement04)
// L3724
ObjectiveGetState(gv_objectiveMovement05)
// L4154
ObjectiveGetState(gv_objectiveCombat01)
// L4586
ObjectiveGetState(gv_objectiveCombat02)
// L5152
ObjectiveGetState(gv_objectiveCombat03)
// L3923
ObjectiveGetState(gv_objective_DestroytheStatues)
// L3923
ObjectiveGetState(gv_objective_Relics)
// L3923
ObjectiveGetState(gv_objective_GetToTheArtifact)
// L1642
ObjectiveGetState(gv_bonusObjectiveCollectRelics)
// L4437
ObjectiveGetState(gv_primaryObjectiveMeltOpenTemple)
// L4437
ObjectiveGetState(gv_primaryObjectiveLaserDrillMustSurvive)
// L4437
ObjectiveGetState(gv_bonusObjectiveCollectRelics)
// L5546
ObjectiveGetState(gv_objectiveDestroyDataz)
// L5546
ObjectiveGetState(gv_objectiveNoAccess)
// L5546
ObjectiveGetState(gv_researchObjectiveKilltheBrutalisk)
// L2754
ObjectiveGetState(gv_objectiveDestroyTheArtifactVault)
// L2754
ObjectiveGetState(gv_researchObjectiveProtossRelics)
// L3443
ObjectiveGetState(gv_objectiveRetrieveArtifact)
// L3443
ObjectiveGetState(gv_objectiveRescuePrisoners)
// L4404
ObjectiveGetState(gv_troopSupply)
// L4404
ObjectiveGetState(gv_objectiveNydusWorms)
// L9098
ObjectiveGetState(gv_oBJPlantSeismicCharges)
// L9098
ObjectiveGetState(gv_oBJExfiltrate)
// L4960
ObjectiveGetState(gv_objectiveDestroyCoolantTowers)
// L4960
ObjectiveGetState(gv_objectiveKillLeviathan)
// L4453
ObjectiveGetState(gv_objective_Artifact)
// L7871
ObjectiveGetState(gv_objectiveHatcheries)
// L7871
ObjectiveGetState(gv_objectiveShrinesGetToShrines)