# Player Ping
Grammar — Player p pings the Minimap.
Flags —Native
|Event
This event fires when the specified player pings the minimap.
# Arguments
int
— Player
Returns — void
native void TriggerAddEventPing(trigger t, int player);
# 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/GameLib.galaxy:18052
void libGame_gt_PlayerUsesExpressionWheel_Init () {
libGame_gt_PlayerUsesExpressionWheel = TriggerCreate("libGame_gt_PlayerUsesExpressionWheel_Func");
TriggerAddEventPing(libGame_gt_PlayerUsesExpressionWheel, c_playerAny);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:16115
void libUIUI_gt_PingListenForPlayerPing_Init () {
libUIUI_gt_PingListenForPlayerPing = TriggerCreate("libUIUI_gt_PingListenForPlayerPing_Func");
TriggerAddEventPing(libUIUI_gt_PingListenForPlayerPing, c_playerAny);
}
mods/liberty.sc2mod — base.sc2data/TriggerLibs/LibertyLib.galaxy:698
libLbty_gt_PingUsed = TriggerCreate("libLbty_gt_PingUsed_Func");
TriggerEnable(libLbty_gt_PingUsed, false);
TriggerAddEventPing(libLbty_gt_PingUsed, c_playerAny);
}