# Player Ping Option
Grammar — Player Ping Option
Flags —Native
|Function
Returns an index into the specific ping option chosen in the ping panel.
Returns — int
native int EventPingOption();
# Supported triggers
- Cheat Used — TriggerAddEventCheatUsed
# 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:17985
lv_action = "";
lv_heroUnit = UnitGroupUnit(UnitGroupSelected(lv_player), 1);
lv_pingIndex = EventPingOption();
lv_stat = -1;
lv_statType = "LootWheelUsed";
mods/heroesdata.stormmod — base.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.sc2mod — base.sc2data/TriggerLibs/LibertyLib.galaxy:686
}
lv_pingType = (EventPingOption());
if ((lv_pingType != 4)) {
libLbty_gf_PingPlay(lv_pingType, EventPlayer(), EventPingPoint(), EventGameUser(), EventPingUnitType(), EventPingUnitPosition(), EventPingUnitControlPlayer());