# Player Ping Unit ControlPlayer
Grammar — Player Ping Unit/Snapshot ControlPlayer
Flags —Native
|Function
Returns the controlling player of the unit/snapshot by a player.
Returns — int
native int EventPingUnitControlPlayer();
# Supported triggers
- Cheat Used — TriggerAddEventCheatUsed
# Related
Category: Ping / Basic
- [F] —
void
— Player Ping — ( TriggerAddEventPing ) - [F] —
unit
— Player Ping Unit — ( EventPingUnit ) - [F] —
string
[ gamelink::Unit ] — Player Ping Unit Type — ( EventPingUnitType ) - [F] —
int
— Player Ping Unit ControlPlayer — ( EventPingUnitControlPlayer ) - [F] —
int
— Player Ping Unit UpkeepPlayer — ( EventPingUnitUpkeepPlayer ) - [F] —
point
— Player Ping Unit Position — ( EventPingUnitPosition ) - [F] —
bool
— Player Ping Unit Is Under Construction — ( EventPingUnitIsUnderConstruction ) - [F] —
point
— Player Ping Location — ( EventPingPoint ) - [F] —
bool
— Player Ping Is From Minimap — ( EventPingedMinimap ) - [F] —
int
— Player Ping Option — ( EventPingOption ) - [F] —
void
— Show/Hide Player Pings — ( PingSetPlayerPingsShown ) - [F] —
void
— Ping Minimap — ( MinimapPing ) - [F] —
void
— Ping Minimap Possible Enemy Start Locations — ( MinimapPingPossibleEnemyStartLocations ) - [F] —
int
[ ping ] — Create Ping (Deprecated) — ( PingCreate ) - [F] —
int
[ ping ] — Create Ping With Point Facing — ( PingCreateWithPlayerId ) - [F] —
int
[ ping ] — Create Ping From Data — ( PingCreateFromData ) - [F] —
void
— Create Ping Facing Angle — ( libNtve_gf_CreatePingFacingAngle ) - [F] —
void
— Show/Hide Ping — ( PingSetVisible ) - [F] —
int
[ ping ] — Last Created Ping — ( PingLastCreated ) - [F] —
bool
— Ping Is Visible — ( PingIsVisible )
# Examples
# mods/liberty.sc2mod
// L688
EventPingUnitControlPlayer()