# 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.sc2campaign

MapScript.galaxy

// L1600
PingSetRotation(gv_nullZoneArrowPings[lv_index], 45.0)
// L1628
PingSetRotation(gv_nullZoneArrowPings[lv_index], 225.0)
// L1644
PingSetRotation(gv_nullZoneArrowPings[1], 45.0)
// L1645
PingSetRotation(gv_nullZoneArrowPings[2], 225.0)
// L4219
PingSetRotation(gv_hyperionMinimapIcon, UnitGetFacing(gv_hyperion))
// L1600
PingSetRotation(gv_nullZoneArrowPings[lv_index], 45.0)
// L1628
PingSetRotation(gv_nullZoneArrowPings[lv_index], 225.0)
// L1644
PingSetRotation(gv_nullZoneArrowPings[1], 45.0)
// L1645
PingSetRotation(gv_nullZoneArrowPings[2], 225.0)
// L4219
PingSetRotation(gv_hyperionMinimapIcon, UnitGetFacing(gv_hyperion))
// L1692
PingSetRotation(gv_tugOfWar_Ping, (UnitGetFacing(gv_alarak) + 180.0))
// L1696
PingSetRotation(gv_tugOfWar_Ping, UnitGetFacing(gv_alarak))
// L1699
PingSetRotation(gv_tugOfWar_Ping, 270.0)
// L1692
PingSetRotation(gv_tugOfWar_Ping, (UnitGetFacing(gv_alarak) + 180.0))
// L1696
PingSetRotation(gv_tugOfWar_Ping, UnitGetFacing(gv_alarak))
// L1699
PingSetRotation(gv_tugOfWar_Ping, 270.0)

# mods/heroesdata.stormmod

GameLib.galaxy

// L1456
PingSetRotation(PingLastCreated(), 270.0)

# mods/novastoryassets.sc2mod

MapScript.galaxy

// L3395
PingSetRotation(gv_hyperionMinimapIcon, UnitGetFacing(gv_hyperion))
// L3395
PingSetRotation(gv_hyperionMinimapIcon, UnitGetFacing(gv_hyperion))

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L379
PingSetRotation(lv_spiningShrinkingPing, (360 - (ModF(lv_scaleIter, 10.0) * 36)))
// L23399
PingSetRotation(lv_hyperionPing, UnitGetFacing(lv_spawnedHyperion))
// L28646
PingSetRotation(lv_avatarPing, UnitGetFacing(lv_spawnedAvatar))