# Show/Hide Player Pings

Grammarshow Player Pings for players
FlagsNative | Action

Shows or Hides player created pings for the specified players. If hidden, the specified players will no longer see the default pings created by pinging the minimap. Pings created via triggers will still be shown.

# Arguments

Returns — void

native void PingSetPlayerPingsShown(
	playergroup inPlayers,
	bool inShown,
);

Category: Ping / Basic

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:8761

    UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false);
    UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeWorldPanelHero, true);
    PingSetPlayerPingsShown(libCore_gv_activeHumanPlayers, false);
    UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogRestartButton, false);
    UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogSaveButton, false);

mods/liberty.sc2modbase.sc2data/TriggerLibs/LibertyLib.galaxy:292

    if ((lp_enableDisable == true)) {
        libNtve_gf_AddPlayerGroupToPlayerGroup(lp_players, libLbty_gv_pingValidPlayers);
        PingSetPlayerPingsShown(lp_players, false);
        UISetFrameVisible(lp_players, c_syncFrameTypePingPanel, true);
        TriggerEnable(libLbty_gt_PingUsed, true);

mods/liberty.sc2modbase.sc2data/TriggerLibs/LibertyLib.galaxy:297

    }
    else {
        PingSetPlayerPingsShown(lp_players, true);
        libNtve_gf_RemovePlayerGroupFromPlayerGroup(lp_players, libLbty_gv_pingValidPlayers);
        UISetFrameVisible(lp_players, c_syncFrameTypePingPanel, false);