# Set Ping Use Unit Visibility
Grammar — Set ping flag Use Unit Visibility to useUnitVisibility
Flags —Native
|Action
Sets whether or not the ping should use the visibility of the attached unit. (for example pings wont show up on enemy units under the fog of war)
# Arguments
int
<ping> — Pingbool
— Use Unit Visibility
Returns — void
native void PingSetUseUnitVisibility(
int p,
bool useUnitVisibility,
);
# 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:42
PingSetUnit(lv_ping, lp_unit);
PingSetUseUnitTeamColor(lv_ping, true);
PingSetUseUnitVisibility(lv_ping, true);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:11978
PingSetUnit(libSwaC_gv_zS_KerriganPing, libSwaC_gv_zS_Kerrigan);
PingSetUseUnitVisibility(libSwaC_gv_zS_KerriganPing, true);
if ((libSwaC_gf_KerriganPhaseCheck(libSwaC_ge_KerriganPhase_KerriganPhaseGhost) == true)) {
PingSetUseUnitTeamColor(libSwaC_gv_zS_KerriganPing, true);
mods/heroesmapmods/battlegroundmapmods/battlefieldofeternity.stormmod — base.stormdata/LibMLBD.galaxy:632
PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/lib_MLBD_A9B10BD8"));
PingSetScale(PingLastCreated(), 0.5);
PingSetUseUnitVisibility(PingLastCreated(), true);
libMLBD_gv_mMBOELaningBossPing[lv_itPingIndex] = PingLastCreated();
libMLBD_gv_mMBOEEventStage = libMLBD_ge_MMBOEEventStage_PushingPrep;