# Player Ping Unit
Grammar — Player Ping Unit
Flags —Native
|Function
Returns the unit pinged by a player.
Returns — unit
native unit EventPingUnit();
# 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/UILib.galaxy:16062
}
lv_targetUnit = EventPingUnit();
if ((UnitTypeTestAttribute(UnitGetType(lv_targetUnit), c_unitAttributeHeroic) == true) && (libNtve_gf_UnitIsVisibleToPlayer(lv_targetUnit, lv_pingingPlayer) == false)) {
return true;