# Position Of Ping
Grammar — Position of ping
Flags —Native
|Function
Returns the position of the specified ping.
# Arguments
int
<ping> — Ping
Returns — point
native point PingGetPosition(int p);
# 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/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid03.sc2map/MapScript.galaxy:2145
for ( ; ( (autoDBBF0ECC_ai >= 0 && lv_i <= autoDBBF0ECC_ae) || (autoDBBF0ECC_ai < 0 && lv_i >= autoDBBF0ECC_ae) ) ; lv_i += autoDBBF0ECC_ai ) {
if ((gv_templePings[lv_i] != c_invalidPingId)) {
if ((libNtve_gf_UnitInRegion(gv_stukov, RegionCircle(PingGetPosition(gv_templePings[lv_i]), 8.0)) == true)) {
PingDestroy(gv_templePings[lv_i]);
gv_templePings[lv_i] = c_invalidPingId;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:1578
libSwaC_gf_CreateObjectivePing(false, UnitGetPosition(UnitFromId(8)), StringExternal("Param/Value/1C3B9AFC"));
gv_lanePing[1] = PingLastCreated();
VisRevealArea(gv_PLAYER_01_USER, RegionCircle(PingGetPosition(PingLastCreated()), 8.0), 10.0, false);
Wait(0.5, c_timeGame);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:1585
libSwaC_gf_CreateObjectivePing(false, UnitGetPosition(UnitFromId(289)), StringExternal("Param/Value/40832EE5"));
gv_lanePing[2] = PingLastCreated();
VisRevealArea(gv_PLAYER_01_USER, RegionCircle(PingGetPosition(PingLastCreated()), 8.0), 10.0, false);
Wait(0.5, c_timeGame);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:1592
libSwaC_gf_CreateObjectivePing(false, UnitGetPosition(UnitFromId(141)), StringExternal("Param/Value/8963E359"));
gv_lanePing[3] = PingLastCreated();
VisRevealArea(gv_PLAYER_01_USER, RegionCircle(PingGetPosition(PingLastCreated()), 8.0), 10.0, false);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid03.sc2map — MapScript.galaxy:2145
for ( ; ( (autoDBBF0ECC_ai >= 0 && lv_i <= autoDBBF0ECC_ae) || (autoDBBF0ECC_ai < 0 && lv_i >= autoDBBF0ECC_ae) ) ; lv_i += autoDBBF0ECC_ai ) {
if ((gv_templePings[lv_i] != c_invalidPingId)) {
if ((libNtve_gf_UnitInRegion(gv_stukov, RegionCircle(PingGetPosition(gv_templePings[lv_i]), 8.0)) == true)) {
PingDestroy(gv_templePings[lv_i]);
gv_templePings[lv_i] = c_invalidPingId;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map — MapScript.galaxy:1578
libSwaC_gf_CreateObjectivePing(false, UnitGetPosition(UnitFromId(8)), StringExternal("Param/Value/1C3B9AFC"));
gv_lanePing[1] = PingLastCreated();
VisRevealArea(gv_PLAYER_01_USER, RegionCircle(PingGetPosition(PingLastCreated()), 8.0), 10.0, false);
Wait(0.5, c_timeGame);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map — MapScript.galaxy:1585
libSwaC_gf_CreateObjectivePing(false, UnitGetPosition(UnitFromId(289)), StringExternal("Param/Value/40832EE5"));
gv_lanePing[2] = PingLastCreated();
VisRevealArea(gv_PLAYER_01_USER, RegionCircle(PingGetPosition(PingLastCreated()), 8.0), 10.0, false);
Wait(0.5, c_timeGame);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map — MapScript.galaxy:1592
libSwaC_gf_CreateObjectivePing(false, UnitGetPosition(UnitFromId(141)), StringExternal("Param/Value/8963E359"));
gv_lanePing[3] = PingLastCreated();
VisRevealArea(gv_PLAYER_01_USER, RegionCircle(PingGetPosition(PingLastCreated()), 8.0), 10.0, false);
}
campaigns/swarmstory.sc2campaign — base.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/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:1481
while (true) {
Wait(0.0625, c_timeGame);
if (((libGame_gv_gameOver == true) || (libNtve_gf_UnitGroupIsDead(lp_attackGroup) == true) || (UnitGroupCount(UnitGroup(null, libCore_gv_cOMPUTER_TeamOrder, RegionCircle(PingGetPosition(lv_attackPing), 6.0), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) > 0))) {
PingDestroy(lv_attackPing);
return true;
mods/voidprologue.sc2mod — base.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);