# 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
- [F] —
void
— Move Ping — ( PingSetPosition ) - [F] —
void
— Make Ping Face Angle — ( PingSetRotation ) - [F] —
void
— Attach Ping To Unit — ( PingSetUnit ) - [F] —
point
— Position Of Ping — ( PingGetPosition ) - [F] —
fixed
— Facing Angle Of Ping — ( PingGetRotation ) - [F] —
unit
— Ping Unit — ( PingGetUnit ) - [F] —
void
— Set Ping Scale — ( PingSetScale ) - [F] —
void
— Set Ping Depth — ( PingSetDepth ) - [F] —
void
— Set Ping Tooltip — ( PingSetTooltip ) - [F] —
void
— Set Ping Color — ( PingSetColor ) - [F] —
void
— Set Ping Duration — ( PingSetDuration ) - [F] —
void
— Set Ping Model — ( PingSetModel ) - [F] —
void
— Set Ping Players — ( PingSetPlayerGroup ) - [F] —
void
— Set Ping Use Unit Team Color — ( PingSetUseUnitTeamColor ) - [F] —
void
— Set Ping Use Unit Visibility — ( PingSetUseUnitVisibility ) - [F] —
void
— Set Ping Observer Display — ( PingSetObserver ) - [F] —
void
— Set Ping Use Player Vision — ( PingSetUsePlayerVision ) - [F] —
void
— Destroy Ping — ( PingDestroy ) - [F] —
void
— Destroy All Pings — ( PingDestroyAll ) - [F] —
fixed
— Ping Scale — ( PingGetScale ) - [F] —
fixed
— Ping Depth — ( PingGetDepth ) - [F] —
text
— Ping Tooltip — ( PingGetTooltip ) - [F] —
color
— Color Of Ping — ( PingGetColor ) - [F] —
fixed
— Duration of Ping — ( PingGetDuration ) - [F] —
playergroup
— Ping Players — ( PingGetPlayerGroup )
# Examples
# campaigns/swarm.sc2campaign
// 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
// L1456
PingSetRotation(PingLastCreated(), 270.0)
# mods/novastoryassets.sc2mod
// L3395
PingSetRotation(gv_hyperionMinimapIcon, UnitGetFacing(gv_hyperion))
// L3395
PingSetRotation(gv_hyperionMinimapIcon, UnitGetFacing(gv_hyperion))
# mods/starcoop/starcoop.sc2mod
// L379
PingSetRotation(lv_spiningShrinkingPing, (360 - (ModF(lv_scaleIter, 10.0) * 36)))
// L23467
PingSetRotation(lv_hyperionPing, UnitGetFacing(lv_spawnedHyperion))
// L28711
PingSetRotation(lv_avatarPing, UnitGetFacing(lv_spawnedAvatar))