# Set Ping Use Unit Team Color
Grammar — Set ping flag Use Unit Team Color to useUnitTeamColor
Flags —Native
|Action
Sets whether or not the ping should use the team color of the attached unit.
# Arguments
int
<ping> — Pingbool
— Use Unit Team Color
Returns — void
native void PingSetUseUnitTeamColor(
int p,
bool useUnitTeamColor,
);
# 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/SwarmCampaignDataHelperLib.galaxy:41
PingSetScale(lv_ping, 0.4);
PingSetUnit(lv_ping, lp_unit);
PingSetUseUnitTeamColor(lv_ping, true);
PingSetUseUnitVisibility(lv_ping, true);
}
campaigns/swarmstory.sc2campaign — base.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.sc2campaign — base.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.stormmod — base.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());