# Make Ping Face Angle
Grammar — Make ping face rotation degrees
Flags —Native
|Action
Instantly rotates the ping to face a specific angle, given in degrees.
# Arguments
int
<ping> — Pingfixed
— Rotation
Returns — void
native void PingSetRotation(int p, fixed rotation);
# 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:1600
PingSetPosition(gv_nullZoneArrowPings[lv_index], PointWithOffsetPolar(UnitGetPosition(gv_kerrigan), lv_currentOffset, lv_angle));
PingSetColor(gv_nullZoneArrowPings[lv_index], Color(0.00, 100.00, 0.00));
PingSetRotation(gv_nullZoneArrowPings[lv_index], 45.0);
PingSetVisible(gv_nullZoneArrowPings[lv_index], true);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid03.sc2map/MapScript.galaxy:1628
PingSetPosition(gv_nullZoneArrowPings[lv_index], PointWithOffsetPolar(UnitGetPosition(gv_kerrigan2), lv_currentOffset, lv_angle));
PingSetColor(gv_nullZoneArrowPings[lv_index], Color(100.00, 0.00, 0.00));
PingSetRotation(gv_nullZoneArrowPings[lv_index], 225.0);
PingSetVisible(gv_nullZoneArrowPings[lv_index], true);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid03.sc2map/MapScript.galaxy:1644
PingSetPosition(gv_nullZoneArrowPings[1], PointWithOffsetPolar(UnitGetPosition(gv_kerrigan22), 12.0, AngleBetweenPoints(UnitGetPosition(gv_kerrigan22), UnitGetPosition(gv_kerrigan))));
PingSetPosition(gv_nullZoneArrowPings[2], PointWithOffsetPolar(UnitGetPosition(gv_kerrigan22), 12.0, AngleBetweenPoints(UnitGetPosition(gv_kerrigan22), UnitGetPosition(gv_kerrigan2))));
PingSetRotation(gv_nullZoneArrowPings[1], 45.0);
PingSetRotation(gv_nullZoneArrowPings[2], 225.0);
PingSetVisible(gv_nullZoneArrowPings[1], true);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid03.sc2map/MapScript.galaxy:1645
PingSetPosition(gv_nullZoneArrowPings[2], PointWithOffsetPolar(UnitGetPosition(gv_kerrigan22), 12.0, AngleBetweenPoints(UnitGetPosition(gv_kerrigan22), UnitGetPosition(gv_kerrigan2))));
PingSetRotation(gv_nullZoneArrowPings[1], 45.0);
PingSetRotation(gv_nullZoneArrowPings[2], 225.0);
PingSetVisible(gv_nullZoneArrowPings[1], true);
PingSetVisible(gv_nullZoneArrowPings[2], true);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:4219
}
PingSetRotation(gv_hyperionMinimapIcon, UnitGetFacing(gv_hyperion));
Wait(0.5, c_timeGame);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid03.sc2map — MapScript.galaxy:1600
PingSetPosition(gv_nullZoneArrowPings[lv_index], PointWithOffsetPolar(UnitGetPosition(gv_kerrigan), lv_currentOffset, lv_angle));
PingSetColor(gv_nullZoneArrowPings[lv_index], Color(0.00, 100.00, 0.00));
PingSetRotation(gv_nullZoneArrowPings[lv_index], 45.0);
PingSetVisible(gv_nullZoneArrowPings[lv_index], true);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid03.sc2map — MapScript.galaxy:1628
PingSetPosition(gv_nullZoneArrowPings[lv_index], PointWithOffsetPolar(UnitGetPosition(gv_kerrigan2), lv_currentOffset, lv_angle));
PingSetColor(gv_nullZoneArrowPings[lv_index], Color(100.00, 0.00, 0.00));
PingSetRotation(gv_nullZoneArrowPings[lv_index], 225.0);
PingSetVisible(gv_nullZoneArrowPings[lv_index], true);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid03.sc2map — MapScript.galaxy:1644
PingSetPosition(gv_nullZoneArrowPings[1], PointWithOffsetPolar(UnitGetPosition(gv_kerrigan22), 12.0, AngleBetweenPoints(UnitGetPosition(gv_kerrigan22), UnitGetPosition(gv_kerrigan))));
PingSetPosition(gv_nullZoneArrowPings[2], PointWithOffsetPolar(UnitGetPosition(gv_kerrigan22), 12.0, AngleBetweenPoints(UnitGetPosition(gv_kerrigan22), UnitGetPosition(gv_kerrigan2))));
PingSetRotation(gv_nullZoneArrowPings[1], 45.0);
PingSetRotation(gv_nullZoneArrowPings[2], 225.0);
PingSetVisible(gv_nullZoneArrowPings[1], true);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid03.sc2map — MapScript.galaxy:1645
PingSetPosition(gv_nullZoneArrowPings[2], PointWithOffsetPolar(UnitGetPosition(gv_kerrigan22), 12.0, AngleBetweenPoints(UnitGetPosition(gv_kerrigan22), UnitGetPosition(gv_kerrigan2))));
PingSetRotation(gv_nullZoneArrowPings[1], 45.0);
PingSetRotation(gv_nullZoneArrowPings[2], 225.0);
PingSetVisible(gv_nullZoneArrowPings[1], true);
PingSetVisible(gv_nullZoneArrowPings[2], true);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2map — MapScript.galaxy:4219
}
PingSetRotation(gv_hyperionMinimapIcon, UnitGetFacing(gv_hyperion));
Wait(0.5, c_timeGame);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/ptaldarim02.sc2map/MapScript.galaxy:1692
TriggerExecute(gt_TugOfWarMoveBossTarget, true, false);
if ((gv_tugOfWar_State == ge_PRESETTugOfWarState_Reverse)) {
PingSetRotation(gv_tugOfWar_Ping, (UnitGetFacing(gv_alarak) + 180.0));
}
else {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/ptaldarim02.sc2map/MapScript.galaxy:1696
else {
if ((gv_tugOfWar_State == ge_PRESETTugOfWarState_Forward)) {
PingSetRotation(gv_tugOfWar_Ping, UnitGetFacing(gv_alarak));
}
else {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/ptaldarim02.sc2map/MapScript.galaxy:1699
}
else {
PingSetRotation(gv_tugOfWar_Ping, 270.0);
}
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim02.sc2map — MapScript.galaxy:1692
TriggerExecute(gt_TugOfWarMoveBossTarget, true, false);
if ((gv_tugOfWar_State == ge_PRESETTugOfWarState_Reverse)) {
PingSetRotation(gv_tugOfWar_Ping, (UnitGetFacing(gv_alarak) + 180.0));
}
else {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim02.sc2map — MapScript.galaxy:1696
else {
if ((gv_tugOfWar_State == ge_PRESETTugOfWarState_Forward)) {
PingSetRotation(gv_tugOfWar_Ping, UnitGetFacing(gv_alarak));
}
else {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim02.sc2map — MapScript.galaxy:1699
}
else {
PingSetRotation(gv_tugOfWar_Ping, 270.0);
}
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:1456
PingSetModel(PingLastCreated(), "StormPingCoreAttack");
PingSetUnit(PingLastCreated(), lp_coreUnit);
PingSetRotation(PingLastCreated(), 270.0);
SoundPlayForPlayer(SoundLink("UI_Game_Ping_CoreUnderAttack_Ally", -1), c_maxPlayers, libGame_gv_teams[lp_teamNumber].lv_teamPlayerGroup, 100.0, 0.0);
}
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova09.sc2map/MapScript.galaxy:3521
PingSetVisible(gv_hyperionMinimapIcon, true);
}
PingSetRotation(gv_hyperionMinimapIcon, UnitGetFacing(gv_hyperion));
Wait(0.25, c_timeGame);
}
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova09.sc2map — MapScript.galaxy:3521
PingSetVisible(gv_hyperionMinimapIcon, true);
}
PingSetRotation(gv_hyperionMinimapIcon, UnitGetFacing(gv_hyperion));
Wait(0.25, c_timeGame);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:379
lv_pingScale = (lv_scaleIter * 0.1);
PingSetScale(lv_spiningShrinkingPing, lv_pingScale);
PingSetRotation(lv_spiningShrinkingPing, (360 - (ModF(lv_scaleIter, 10.0) * 36)));
Wait(0.1, c_timeReal);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:23474
lv_hyperionPing = PingLastCreated();
while ((UnitIsAlive(lv_spawnedHyperion) == true)) {
PingSetRotation(lv_hyperionPing, UnitGetFacing(lv_spawnedHyperion));
Wait(0.125, c_timeGame);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:28719
lv_avatarPing = PingLastCreated();
while ((UnitIsAlive(lv_spawnedAvatar) == true)) {
PingSetRotation(lv_avatarPing, UnitGetFacing(lv_spawnedAvatar));
Wait(0.125, c_timeGame);
}