# Ping Is Visible
Grammar — ping is visible
Flags —Native
|Function
Returns true if the ping is visible.
# Arguments
int
<ping> — Ping
Returns — bool
native bool PingIsVisible(int p);
# Related
Category: Ping / Basic
- Player Ping —
void
— TriggerAddEventPing - Player Ping Unit —
unit
— EventPingUnit - Player Ping Unit Type —
string
<gamelink::Unit> — EventPingUnitType - Player Ping Unit ControlPlayer —
int
— EventPingUnitControlPlayer - Player Ping Unit UpkeepPlayer —
int
— EventPingUnitUpkeepPlayer - Player Ping Unit Position —
point
— EventPingUnitPosition - Player Ping Unit Is Under Construction —
bool
— EventPingUnitIsUnderConstruction - Player Ping Location —
point
— EventPingPoint - Player Ping Is From Minimap —
bool
— EventPingedMinimap - Player Ping Option —
int
— EventPingOption - Show/Hide Player Pings —
void
— PingSetPlayerPingsShown - Ping Minimap —
void
— MinimapPing - Ping Minimap Possible Enemy Start Locations —
void
— MinimapPingPossibleEnemyStartLocations - Create Ping (Deprecated) —
int
<ping> — PingCreate - Create Ping With Point Facing —
int
<ping> — PingCreateWithPlayerId - Create Ping From Data —
int
<ping> — PingCreateFromData - Create Ping Facing Angle —
void
— libNtve_gf_CreatePingFacingAngle - Show/Hide Ping —
void
— PingSetVisible - Last Created Ping —
int
<ping> — PingLastCreated - Ping Is Visible —
bool
— PingIsVisible
# Examples
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:3715
for ( ; ( (auto5208ADA1_ai >= 0 && lv_i <= auto5208ADA1_ae) || (auto5208ADA1_ai < 0 && lv_i >= auto5208ADA1_ae) ) ; lv_i += auto5208ADA1_ai ) {
if ((libNtve_gf_UnitInRegion(lv_tumor, gv_objective_TumorRegion[lv_i]) == true) && (gv_objective_TumorActivated[lv_i] == false)) {
if ((PingIsVisible(gv_objective_BonusPings[lv_i]) == false) && (UnitGroupCount(UnitGroup("CreepTumor", gv_pLAYER_01_USER, gv_objective_TumorRegion[lv_i], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterSummoned - 32))), 0), c_unitCountAlive) == 0)) {
gf_CreateBonusHelper(lv_i);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid01.sc2map — MapScript.galaxy:3715
for ( ; ( (auto5208ADA1_ai >= 0 && lv_i <= auto5208ADA1_ae) || (auto5208ADA1_ai < 0 && lv_i >= auto5208ADA1_ae) ) ; lv_i += auto5208ADA1_ai ) {
if ((libNtve_gf_UnitInRegion(lv_tumor, gv_objective_TumorRegion[lv_i]) == true) && (gv_objective_TumorActivated[lv_i] == false)) {
if ((PingIsVisible(gv_objective_BonusPings[lv_i]) == false) && (UnitGroupCount(UnitGroup("CreepTumor", gv_pLAYER_01_USER, gv_objective_TumorRegion[lv_i], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterSummoned - 32))), 0), c_unitCountAlive) == 0)) {
gf_CreateBonusHelper(lv_i);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:16095
auto2E653B32_var = 0;
for ( ; auto2E653B32_var <= auto2E653B32_ae; auto2E653B32_var += 1 ) {
if ((libSwaC_gv_zS_RePingArray[auto2E653B32_var] != c_invalidPingId) && (PingIsVisible(libSwaC_gv_zS_RePingArray[auto2E653B32_var]) == true)) {
libSwaC_gf_ObjectiveRePing(libSwaC_gv_zS_RePingArray[auto2E653B32_var]);
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:7644
auto2E653B32_var = 0;
for ( ; auto2E653B32_var <= auto2E653B32_ae; auto2E653B32_var += 1 ) {
if ((libA3DDD02B_gv_pP_RePingArray[auto2E653B32_var] != c_invalidPingId) && (PingIsVisible(libA3DDD02B_gv_pP_RePingArray[auto2E653B32_var]) == true)) {
libA3DDD02B_gf_ObjectiveRePing(libA3DDD02B_gv_pP_RePingArray[auto2E653B32_var]);
}