# Objective Is Visible
Grammar — objective is visible for player player
Flags —Native
|Function
Returns true if the objective is visible for the specified player.
# Arguments
int
<objective> — Objectiveint
— Player
Returns — bool
native bool ObjectiveVisible(
int inObjective,
int inPlayer,
);
# Related
Category: Objective / Basic
- Create Objective —
int
<objective> — ObjectiveCreate - Create Objective For Players —
int
<objective> — ObjectiveCreateForPlayers - Show/Hide Objective —
void
— ObjectiveShow - Set Objective State —
void
— ObjectiveSetState - Last Created Objective —
int
<objective> — ObjectiveLastCreated - Objective Is Visible —
bool
— ObjectiveVisible - Objective State —
int
<preset::ObjectiveState> — ObjectiveGetState
# Examples
campaigns/void.sc2campaign — base.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.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);
}
mods/novastoryassets.sc2mod — base.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.sc2mod — base.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.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.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2map — MapScript.galaxy:7553
}
if ((ObjectiveVisible(gv_objectiveDestroyZergBase4, gv_pLAYER_01_USER) == true)) {
TriggerExecute(gt_ObjectiveReachCommandRoomFailed, true, false);
}