# Color Of Ping

Grammar — Color of ping
FlagsNative | Function

Returns the ping color.

# Arguments

  • int<ping> — Ping

Returns — color

native color PingGetColor(int p);

Category: Ping / Advanced

# Examples

campaigns/swarmstory.sc2campaignbase.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.sc2modbase.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);