# Set Ping Use Unit Visibility

Grammar — Set ping flag Use Unit Visibility to useUnitVisibility
FlagsNative | Action

Sets whether or not the ping should use the visibility of the attached unit. (for example pings wont show up on enemy units under the fog of war)

# Arguments

  • int<ping> — Ping
  • bool — Use Unit Visibility

Returns — void

native void PingSetUseUnitVisibility(
	int p,
	bool useUnitVisibility,
);

Category: Ping / Advanced

# Examples

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignDataHelperLib.galaxy:42

    PingSetUnit(lv_ping, lp_unit);
    PingSetUseUnitTeamColor(lv_ping, true);
    PingSetUseUnitVisibility(lv_ping, true);
}

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:11978


    PingSetUnit(libSwaC_gv_zS_KerriganPing, libSwaC_gv_zS_Kerrigan);
    PingSetUseUnitVisibility(libSwaC_gv_zS_KerriganPing, true);
    if ((libSwaC_gf_KerriganPhaseCheck(libSwaC_ge_KerriganPhase_KerriganPhaseGhost) == true)) {
        PingSetUseUnitTeamColor(libSwaC_gv_zS_KerriganPing, true);

mods/heroesmapmods/battlegroundmapmods/battlefieldofeternity.stormmodbase.stormdata/LibMLBD.galaxy:632

    PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/lib_MLBD_A9B10BD8"));
    PingSetScale(PingLastCreated(), 0.5);
    PingSetUseUnitVisibility(PingLastCreated(), true);
    libMLBD_gv_mMBOELaningBossPing[lv_itPingIndex] = PingLastCreated();
    libMLBD_gv_mMBOEEventStage = libMLBD_ge_MMBOEEventStage_PushingPrep;