# Player Ping Location
Grammar — Player Ping Location
Flags —Native
|Function
Returns the location pinged by a player.
Returns — point
native point EventPingPoint();
# 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:18014
lv_dummyEffect = libGame_gf_GetWheelEffectFromIndex(lv_pingIndex);
lv_order = Order(lv_cmd);
lv_point = EventPingPoint();
if ((lv_mapID == "")) {
lv_mapID = "None";
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:7673
}
else {
libNtve_gf_CreatePingFacingAngleWithType(lp_pingPlayerGroup, lv_pingModel, EventPingPoint(), Color(100.00, 100.00, 100.00), 3.0, 270.0, -1, lp_pingingPlayer);
SoundPlayForPlayer(lv_pingSound, lp_pingingPlayer, lp_pingPlayerGroup, 100.0, 0.0);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:16069
lv_pingPlayerGroup = PlayerGroupMath(libGame_gv_teams[libGame_gf_TeamNumberOfPlayer(lv_pingingPlayer)].lv_teamPlayerGroup, PlayerGroupMuting(libNtve_ge_MuteType_Pings, lv_pingingPlayer, true), libNtve_ge_PlayerGroupOperation_Subtract);
if ((UnitIsValid(lv_targetUnit) == false)) {
lv_targetUnit = libUIUI_gf_PingGetSpecialPingTargetInRangeOfPoint(EventPingPoint(), EventPingedMinimap(), lv_pingingPlayer);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:16083
autoFCAAB407_val = lv_pingType;
if (autoFCAAB407_val == c_pingTypeAssistMe) {
libUIUI_gf_PingPlayerUsesAssistMePing(lv_pingingPlayer, lv_targetUnit, EventPingPoint());
}
else if (autoFCAAB407_val == c_pingTypeDanger) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:16086
}
else if (autoFCAAB407_val == c_pingTypeDanger) {
libUIUI_gf_PingPlayerUsesDangerPing(lv_pingingPlayer, EventPingPoint(), lv_targetUnit);
}
else if (autoFCAAB407_val == c_pingTypeOnMyWay) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:16089
}
else if (autoFCAAB407_val == c_pingTypeOnMyWay) {
libUIUI_gf_PingPlayerUsesOnMyWayPing(lv_targetUnit, lv_pingingPlayer, EventPingPoint());
}
else if (autoFCAAB407_val == c_pingTypeDefend) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:16092
}
else if (autoFCAAB407_val == c_pingTypeDefend) {
libUIUI_gf_PingPlayerUsesDefendPing(lv_targetUnit, lv_pingingPlayer, EventPingPoint());
}
else if (autoFCAAB407_val == c_pingTypeRetreat) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:16095
}
else if (autoFCAAB407_val == c_pingTypeRetreat) {
libUIUI_gf_PingPlayerUsesRetreatPing(lv_pingingPlayer, EventPingPoint());
}
else if (autoFCAAB407_val == c_pingTypeNormal) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:16102
}
else {
libNtve_gf_CreatePingFacingAngleWithType(lv_pingPlayerGroup, lv_pingModel, EventPingPoint(), Color(100.00, 100.00, 100.00), 3.0, 270.0, -1, lv_pingingPlayer);
SoundPlayForPlayer(lv_pingSound, lv_pingingPlayer, lv_pingPlayerGroup, 100.0, 0.0);
}
mods/liberty.sc2mod — base.sc2data/TriggerLibs/LibertyLib.galaxy:688
lv_pingType = (EventPingOption());
if ((lv_pingType != 4)) {
libLbty_gf_PingPlay(lv_pingType, EventPlayer(), EventPingPoint(), EventGameUser(), EventPingUnitType(), EventPingUnitPosition(), EventPingUnitControlPlayer());
}