# Set Ping Color
Grammar — Set ping color to color
Flags —Native
|Action
Sets the ping color.
# Arguments
int
[ ping ] — Pingcolor
— Color
Returns — void
native void PingSetColor(int p, color intColor);
# Related
Category: Ping / Advanced
- [F] —
void
— Move Ping — ( PingSetPosition ) - [F] —
void
— Make Ping Face Angle — ( PingSetRotation ) - [F] —
void
— Attach Ping To Unit — ( PingSetUnit ) - [F] —
point
— Position Of Ping — ( PingGetPosition ) - [F] —
fixed
— Facing Angle Of Ping — ( PingGetRotation ) - [F] —
unit
— Ping Unit — ( PingGetUnit ) - [F] —
void
— Set Ping Scale — ( PingSetScale ) - [F] —
void
— Set Ping Depth — ( PingSetDepth ) - [F] —
void
— Set Ping Tooltip — ( PingSetTooltip ) - [F] —
void
— Set Ping Color — ( PingSetColor ) - [F] —
void
— Set Ping Duration — ( PingSetDuration ) - [F] —
void
— Set Ping Model — ( PingSetModel ) - [F] —
void
— Set Ping Players — ( PingSetPlayerGroup ) - [F] —
void
— Set Ping Use Unit Team Color — ( PingSetUseUnitTeamColor ) - [F] —
void
— Set Ping Use Unit Visibility — ( PingSetUseUnitVisibility ) - [F] —
void
— Set Ping Observer Display — ( PingSetObserver ) - [F] —
void
— Set Ping Use Player Vision — ( PingSetUsePlayerVision ) - [F] —
void
— Destroy Ping — ( PingDestroy ) - [F] —
void
— Destroy All Pings — ( PingDestroyAll ) - [F] —
fixed
— Ping Scale — ( PingGetScale ) - [F] —
fixed
— Ping Depth — ( PingGetDepth ) - [F] —
text
— Ping Tooltip — ( PingGetTooltip ) - [F] —
color
— Color Of Ping — ( PingGetColor ) - [F] —
fixed
— Duration of Ping — ( PingGetDuration ) - [F] —
playergroup
— Ping Players — ( PingGetPlayerGroup )
# Examples
# campaigns/liberty.sc2campaign
// L1305
PingSetColor(gv_odinPing, Color(100.00, 0.00, 0.00))
// L1310
PingSetColor(gv_odinPing, Color(0.00, 100.00, 0.00))
// L10595
PingSetColor(gv_pingFusionCore, Color(0.00, 100.00, 0.00))
// L1305
PingSetColor(gv_odinPing, Color(100.00, 0.00, 0.00))
// L1310
PingSetColor(gv_odinPing, Color(0.00, 100.00, 0.00))
// L10595
PingSetColor(gv_pingFusionCore, Color(0.00, 100.00, 0.00))
// L634
PingSetColor(lv_podPing, Color(100.00, 100.00, 0.00))
// L1516
PingSetColor(PingLastCreated(), Color(70.59, 47.06, 100.00))
// L1583
PingSetColor(gv_nullZonePing, Color(0.00, 100.00, 0.00))
// L1584
PingSetColor(gv_narudPing, Color(0.00, 100.00, 0.00))
// L1599
PingSetColor(gv_nullZoneArrowPings[lv_index], Color(0.00, 100.00, 0.00))
// L1611
PingSetColor(gv_nullZonePing, Color(100.00, 0.00, 0.00))
// L1612
PingSetColor(gv_narudPing, Color(100.00, 0.00, 0.00))
// L1627
PingSetColor(gv_nullZoneArrowPings[lv_index], Color(100.00, 0.00, 0.00))
// L1638
PingSetColor(gv_nullZonePing, Color(75.29, 75.29, 75.29))
// L1639
PingSetColor(gv_narudPing, Color(75.29, 75.29, 75.29))
// L1640
PingSetColor(gv_nullZoneArrowPings[1], Color(75.29, 75.29, 75.29))
// L2841
PingSetColor(PingLastCreated(), Color(100.00, 100.00, 0.00))
// L2847
PingSetColor(PingLastCreated(), Color(100.00, 100.00, 0.00))
// L8654
PingSetColor(PingLastCreated(), Color(100.00, 0.00, 0.00))
// L9131
PingSetColor(PingLastCreated(), Color(100.00, 0.00, 0.00))
// L4369
PingSetColor(PingLastCreated(), Color(100.00, 100.00, 0.00))
// L4225
PingSetColor(PingLastCreated(), Color(0.00, 100.00, 0.00))
// L634
PingSetColor(lv_podPing, Color(100.00, 100.00, 0.00))
// L1516
PingSetColor(PingLastCreated(), Color(70.59, 47.06, 100.00))
// L1583
PingSetColor(gv_nullZonePing, Color(0.00, 100.00, 0.00))
// L1584
PingSetColor(gv_narudPing, Color(0.00, 100.00, 0.00))
// L1599
PingSetColor(gv_nullZoneArrowPings[lv_index], Color(0.00, 100.00, 0.00))
// L1611
PingSetColor(gv_nullZonePing, Color(100.00, 0.00, 0.00))
// L1612
PingSetColor(gv_narudPing, Color(100.00, 0.00, 0.00))
// L1627
PingSetColor(gv_nullZoneArrowPings[lv_index], Color(100.00, 0.00, 0.00))
// L1638
PingSetColor(gv_nullZonePing, Color(75.29, 75.29, 75.29))
// L1639
PingSetColor(gv_narudPing, Color(75.29, 75.29, 75.29))
// L1640
PingSetColor(gv_nullZoneArrowPings[1], Color(75.29, 75.29, 75.29))
// L2841
PingSetColor(PingLastCreated(), Color(100.00, 100.00, 0.00))
// L2847
PingSetColor(PingLastCreated(), Color(100.00, 100.00, 0.00))
// L8654
PingSetColor(PingLastCreated(), Color(100.00, 0.00, 0.00))
// L9131
PingSetColor(PingLastCreated(), Color(100.00, 0.00, 0.00))
// L4369
PingSetColor(PingLastCreated(), Color(100.00, 100.00, 0.00))
// L4225
PingSetColor(PingLastCreated(), Color(0.00, 100.00, 0.00))
# campaigns/swarmstory.sc2campaign
// L11984
PingSetColor(libSwaC_gv_zS_KerriganPing, Color(70.59, 47.06, 100.00))
# campaigns/void.sc2campaign
// L501
PingSetColor(PingLastCreated(), Color(0.00, 0.00, 50.20))
// L1741
PingSetColor(gv_tugOfWar_Ping, Color(100.00, 100.00, 100.00))
// L1757
PingSetColor(gv_tugOfWar_Ping, Color(100.00, 0.00, 0.00))
// L1772
PingSetColor(gv_tugOfWar_Ping, Color(0.00, 100.00, 0.00))
// L356
PingSetColor(gv_celestialLocks[lp_index].lv_objectivePing, Color(100.00, 100.00, 100.00))
// L371
PingSetColor(gv_celestialLocks[lp_index].lv_objectivePing, Color(0.00, 100.00, 0.00))
// L385
PingSetColor(gv_celestialLocks[lp_index].lv_objectivePing, Color(100.00, 0.00, 0.00))
// L1136
PingSetColor(gv_celestialLocks[lv_index].lv_objectivePing, Color(100.00, 0.00, 0.00))
// L662
PingSetColor(PingLastCreated(), Color(100.00, 50.20, 0.00))
// L2873
PingSetColor(PingLastCreated(), Color(100.00, 0.00, 0.00))
// L2934
PingSetColor(PingLastCreated(), Color(100.00, 0.00, 0.00))
// L501
PingSetColor(PingLastCreated(), Color(0.00, 0.00, 50.20))
// L1741
PingSetColor(gv_tugOfWar_Ping, Color(100.00, 100.00, 100.00))
// L1757
PingSetColor(gv_tugOfWar_Ping, Color(100.00, 0.00, 0.00))
// L1772
PingSetColor(gv_tugOfWar_Ping, Color(0.00, 100.00, 0.00))
// L356
PingSetColor(gv_celestialLocks[lp_index].lv_objectivePing, Color(100.00, 100.00, 100.00))
// L371
PingSetColor(gv_celestialLocks[lp_index].lv_objectivePing, Color(0.00, 100.00, 0.00))
// L385
PingSetColor(gv_celestialLocks[lp_index].lv_objectivePing, Color(100.00, 0.00, 0.00))
// L1136
PingSetColor(gv_celestialLocks[lv_index].lv_objectivePing, Color(100.00, 0.00, 0.00))
// L662
PingSetColor(PingLastCreated(), Color(100.00, 50.20, 0.00))
// L2873
PingSetColor(PingLastCreated(), Color(100.00, 0.00, 0.00))
// L2934
PingSetColor(PingLastCreated(), Color(100.00, 0.00, 0.00))
# mods/heroesbrawlmods/arenamodemods/gardenarena.stormmod
// L502
PingSetColor(PingLastCreated(), Color(100.00, 100.00, 0.00))
// L507
PingSetColor(PingLastCreated(), Color(100.00, 100.00, 0.00))
// L709
PingSetColor(PingLastCreated(), Color(100.00, 100.00, 0.00))
// L714
PingSetColor(PingLastCreated(), Color(100.00, 100.00, 0.00))
# mods/heroesbrawlmods/arenamodemods/punisherarena.stormmod
// L1162
PingSetColor(PingLastCreated(), Color(100.00, 100.00, 0.00))
# mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod
// L2590
PingSetColor(libPEB1_gv_archangelAreas[lp_areaIndex].lv_archangelPing, libCore_gv_cOLOREnemyColor)
# mods/heroesdata.stormmod
// L3016
PingSetColor(PingLastCreated(), lp_color)
// L3030
PingSetColor(PingLastCreated(), lp_color)
# mods/heroesmapmods/battlegroundmapmods/battlefieldofeternity.stormmod
// L1137
PingSetColor(lv_flyPathingTargetPing[0], libCore_gv_cOLORAllyColor)
// L1138
PingSetColor(lv_flyPathingTargetPing[1], Color(0.00, 100.00, 0.00))
// L1139
PingSetColor(lv_flyPathingTargetPing[2], libCore_gv_cOLOREnemyColor)
// L1142
PingSetColor(lv_flyPathingTargetPing[0], libCore_gv_cOLOREnemyColor)
// L1143
PingSetColor(lv_flyPathingTargetPing[1], libCore_gv_cOLOREnemyColor)
// L1144
PingSetColor(lv_flyPathingTargetPing[2], Color(0.00, 100.00, 0.00))
# mods/heroesmapmods/battlegroundmapmods/skytemple.stormmod
// L1747
PingSetColor(PingLastCreated(), Color(0.00, 100.00, 0.00))
// L1750
PingSetColor(PingLastCreated(), Color(100.00, 0.00, 0.00))
// L1763
PingSetColor(PingLastCreated(), Color(0.00, 100.00, 0.00))
// L1766
PingSetColor(PingLastCreated(), Color(100.00, 0.00, 0.00))
# mods/novastoryassets.sc2mod
// L1695
PingSetColor(PingLastCreated(), Color(100.00, 0.00, 0.00))
// L2238
PingSetColor(PingLastCreated(), Color(100.00, 0.00, 0.00))
// L1695
PingSetColor(PingLastCreated(), Color(100.00, 0.00, 0.00))
// L2238
PingSetColor(PingLastCreated(), Color(100.00, 0.00, 0.00))