# Show/Hide Player Pings
Grammar — show Player Pings for players
Flags —Native
|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
playergroup
— Playersbool
<preset::ShowHideOption> — Show
Returns — void
native void PingSetPlayerPingsShown(
playergroup inPlayers,
bool inShown,
);
# 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
mods/heroesdata.stormmod — base.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.sc2mod — base.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.sc2mod — base.sc2data/TriggerLibs/LibertyLib.galaxy:297
}
else {
PingSetPlayerPingsShown(lp_players, true);
libNtve_gf_RemovePlayerGroupFromPlayerGroup(lp_players, libLbty_gv_pingValidPlayers);
UISetFrameVisible(lp_players, c_syncFrameTypePingPanel, false);