# 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
- [F] —
int
[ objective ] — Create Objective — ( ObjectiveCreate ) - [F] —
int
[ objective ] — Create Objective For Players — ( ObjectiveCreateForPlayers ) - [F] —
void
— Show/Hide Objective — ( ObjectiveShow ) - [F] —
void
— Set Objective State — ( ObjectiveSetState ) - [F] —
int
[ objective ] — Last Created Objective — ( ObjectiveLastCreated ) - [F] —
bool
— Objective Is Visible — ( ObjectiveVisible ) - [F] —
int
[ preset::ObjectiveState ] — Objective State — ( ObjectiveGetState )
# Examples
# campaigns/void.sc2campaign
// L6475
ObjectiveVisible(gv_objectiveDestroyZergBase3, gv_pLAYER_01_USER)
// L6475
ObjectiveVisible(gv_objectiveDestroyZergBase3, gv_pLAYER_01_USER)
// L6980
ObjectiveVisible(gv_objectiveDestroyZergBase2, gv_pLAYER_01_USER)
// L6984
ObjectiveVisible(gv_objectiveDestroyZergBase4, gv_pLAYER_01_USER)
// L6980
ObjectiveVisible(gv_objectiveDestroyZergBase2, gv_pLAYER_01_USER)
// L6984
ObjectiveVisible(gv_objectiveDestroyZergBase4, gv_pLAYER_01_USER)