# Make Ping Face Angle

Grammar — Make ping face rotation degrees
FlagsNative | Action

Instantly rotates the ping to face a specific angle, given in degrees.

# Arguments

  • int<ping> — Ping
  • fixed — Rotation

Returns — void

native void PingSetRotation(int p, fixed rotation);

Category: Ping / Advanced

# Examples

campaigns/swarm.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.galaxy:4219

        }

        PingSetRotation(gv_hyperionMinimapIcon, UnitGetFacing(gv_hyperion));
        Wait(0.5, c_timeGame);
    }

campaigns/void.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.galaxy:1699

                }
                else {
                    PingSetRotation(gv_tugOfWar_Ping, 270.0);
                }
            }

mods/heroesdata.stormmodbase.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.sc2modbase3.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.sc2mapMapScript.galaxy:3521

            PingSetVisible(gv_hyperionMinimapIcon, true);
        }
        PingSetRotation(gv_hyperionMinimapIcon, UnitGetFacing(gv_hyperion));
        Wait(0.25, c_timeGame);
    }

mods/starcoop/starcoop.sc2modbase.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.sc2modbase.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.sc2modbase.sc2data/LibCOMI.galaxy:28719

    lv_avatarPing = PingLastCreated();
    while ((UnitIsAlive(lv_spawnedAvatar) == true)) {
        PingSetRotation(lv_avatarPing, UnitGetFacing(lv_spawnedAvatar));
        Wait(0.125, c_timeGame);
    }