# Ping Is Visible

Grammarping is visible
FlagsNative | Function

Returns true if the ping is visible.

# Arguments

  • int<ping> — Ping

Returns — bool

native bool PingIsVisible(int p);

Category: Ping / Basic

# Examples

campaigns/swarm.sc2campaignbase.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.sc2mapMapScript.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.sc2campaignbase.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.sc2modbase.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]);
            }