# Player Ping Option

Grammar — Player Ping Option
FlagsNative | Function

Returns an index into the specific ping option chosen in the ping panel.

Returns — int

native int EventPingOption();

# Supported triggers

Category: Ping / Basic

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:17985

    lv_action = "";
    lv_heroUnit = UnitGroupUnit(UnitGroupSelected(lv_player), 1);
    lv_pingIndex = EventPingOption();
    lv_stat = -1;
    lv_statType = "LootWheelUsed";

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

    }

    lv_pingType = EventPingOption();
    if ((!(((lv_pingType == c_pingTypeAssistMe) || (lv_pingType == c_pingTypeDanger) || (lv_pingType == c_pingTypeDefend) || (lv_pingType == c_pingTypeNormal) || (lv_pingType == c_pingTypeOnMyWay) || (lv_pingType == c_pingTypeRetreat))))) {
        return true;

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

    }

    lv_pingType = (EventPingOption());
    if ((lv_pingType != 4)) {
        libLbty_gf_PingPlay(lv_pingType, EventPlayer(), EventPingPoint(), EventGameUser(), EventPingUnitType(), EventPingUnitPosition(), EventPingUnitControlPlayer());