# Objective Is Visible

Grammarobjective is visible for player player
FlagsNative | Function

Returns true if the objective is visible for the specified player.

# Arguments

  • int<objective> — Objective
  • int — Player

Returns — bool

native bool ObjectiveVisible(
	int inObjective,
	int inPlayer,
);

Category: Objective / Basic

# Examples

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:6475

    TriggerQueueClear(c_triggerQueueRemove);
    Wait(2.0, c_timeReal);
    if ((ObjectiveVisible(gv_objectiveDestroyZergBase3, gv_pLAYER_01_USER) == true)) {
        TriggerExecute(gt_ObjectiveKerriganMustSurviveFailed, true, false);
    }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2mapMapScript.galaxy:6475

    TriggerQueueClear(c_triggerQueueRemove);
    Wait(2.0, c_timeReal);
    if ((ObjectiveVisible(gv_objectiveDestroyZergBase3, gv_pLAYER_01_USER) == true)) {
        TriggerExecute(gt_ObjectiveKerriganMustSurviveFailed, true, false);
    }

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:7549

    Wait(2.0, c_timeReal);
    TriggerExecute(gt_ObjectiveNovaMustSurviveFailed, true, false);
    if ((ObjectiveVisible(gv_objectiveDestroyZergBase2, gv_pLAYER_01_USER) == true)) {
        TriggerExecute(gt_ObjectiveReachCommunicationsHubFailed, true, false);
    }

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:7553

    }

    if ((ObjectiveVisible(gv_objectiveDestroyZergBase4, gv_pLAYER_01_USER) == true)) {
        TriggerExecute(gt_ObjectiveReachCommandRoomFailed, true, false);
    }

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2mapMapScript.galaxy:7549

    Wait(2.0, c_timeReal);
    TriggerExecute(gt_ObjectiveNovaMustSurviveFailed, true, false);
    if ((ObjectiveVisible(gv_objectiveDestroyZergBase2, gv_pLAYER_01_USER) == true)) {
        TriggerExecute(gt_ObjectiveReachCommunicationsHubFailed, true, false);
    }

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2mapMapScript.galaxy:7553

    }

    if ((ObjectiveVisible(gv_objectiveDestroyZergBase4, gv_pLAYER_01_USER) == true)) {
        TriggerExecute(gt_ObjectiveReachCommandRoomFailed, true, false);
    }