# Player Ping

Grammar — Player p pings the Minimap.
FlagsNative | Event

This event fires when the specified player pings the minimap.

# Arguments

  • int — Player

Returns — void

native void TriggerAddEventPing(trigger t, int player);

Category: Ping / Basic

# Examples

mods/heroesdata.stormmodbase.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.stormmodbase.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.sc2modbase.sc2data/TriggerLibs/LibertyLib.galaxy:698

    libLbty_gt_PingUsed = TriggerCreate("libLbty_gt_PingUsed_Func");
    TriggerEnable(libLbty_gt_PingUsed, false);
    TriggerAddEventPing(libLbty_gt_PingUsed, c_playerAny);
}