# Color Of Ping
Grammar — Color of ping
Flags —Native|Function
Returns the ping color.
# Arguments
int<ping> — Ping
Returns — color
native color PingGetColor(int p);
# Related
Category: Ping / Advanced
- Move Ping —
void— PingSetPosition - Make Ping Face Angle —
void— PingSetRotation - Attach Ping To Unit —
void— PingSetUnit - Position Of Ping —
point— PingGetPosition - Facing Angle Of Ping —
fixed— PingGetRotation - Ping Unit —
unit— PingGetUnit - Set Ping Scale —
void— PingSetScale - Set Ping Depth —
void— PingSetDepth - Set Ping Tooltip —
void— PingSetTooltip - Set Ping Color —
void— PingSetColor - Set Ping Duration —
void— PingSetDuration - Set Ping Model —
void— PingSetModel - Set Ping Players —
void— PingSetPlayerGroup - Set Ping Use Unit Team Color —
void— PingSetUseUnitTeamColor - Set Ping Use Unit Visibility —
void— PingSetUseUnitVisibility - Set Ping Observer Display —
void— PingSetObserver - Set Ping Use Player Vision —
void— PingSetUsePlayerVision - Destroy Ping —
void— PingDestroy - Destroy All Pings —
void— PingDestroyAll - Ping Scale —
fixed— PingGetScale - Ping Depth —
fixed— PingGetDepth - Ping Tooltip —
text— PingGetTooltip - Color Of Ping —
color— PingGetColor - Duration of Ping —
fixed— PingGetDuration - Ping Players —
playergroup— PingGetPlayerGroup
# Examples
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:736
// Implementation
if ((lp_ping != c_invalidPingId)) {
libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingObjective", PingGetPosition(lp_ping), PingGetColor(lp_ping), 0.6, 270.0);
PingSetScale(PingLastCreated(), 3.0);
SoundPlay(SoundLink("UI_BriefingUnitSelect", -1), PlayerGroupAll(), 100.0, 0.0);
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:414
// Implementation
if ((lp_ping != c_invalidPingId)) {
libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingObjective", PingGetPosition(lp_ping), PingGetColor(lp_ping), 0.6, 270.0);
PingSetScale(PingLastCreated(), 3.0);
SoundPlay(SoundLink("UI_BriefingUnitSelect", -1), PlayerGroupAll(), 100.0, 0.0);