# Set Ping Use Unit Team Color

Grammar — Set ping flag Use Unit Team Color to useUnitTeamColor
FlagsNative | Action

Sets whether or not the ping should use the team color of the attached unit.

# Arguments

  • int<ping> — Ping
  • bool — Use Unit Team Color

Returns — void

native void PingSetUseUnitTeamColor(
	int p,
	bool useUnitTeamColor,
);

Category: Ping / Advanced

# Examples

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignDataHelperLib.galaxy:41

    PingSetScale(lv_ping, 0.4);
    PingSetUnit(lv_ping, lp_unit);
    PingSetUseUnitTeamColor(lv_ping, true);
    PingSetUseUnitVisibility(lv_ping, true);
}

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:11980

    PingSetUseUnitVisibility(libSwaC_gv_zS_KerriganPing, true);
    if ((libSwaC_gf_KerriganPhaseCheck(libSwaC_ge_KerriganPhase_KerriganPhaseGhost) == true)) {
        PingSetUseUnitTeamColor(libSwaC_gv_zS_KerriganPing, true);
    }
    else {

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:11983

    }
    else {
        PingSetUseUnitTeamColor(libSwaC_gv_zS_KerriganPing, false);
        PingSetColor(libSwaC_gv_zS_KerriganPing, Color(70.59, 47.06, 100.00));
    }

mods/heroesmapmods/battlegroundmapmods/battlefieldofeternity.stormmodbase.stormdata/LibMLBD.galaxy:2756

        libNtve_gf_CreatePingFacingAngleWithType(PlayerGroupAll(), lv_model, lv_positions[lv_itTeam], ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, lv_angle[lv_itTeam], -1, -1);
        lv_pings[lv_itTeam] = PingLastCreated();
        PingSetUseUnitTeamColor(PingLastCreated(), true);
        PingSetScale(PingLastCreated(), 0.3);
        PingSetUnit(PingLastCreated(), UnitLastCreated());