# Move Ping

Grammar — Move ping to position
FlagsNative | Action

Moves the ping to a new location.

# Arguments

  • int [ ping ] — Ping
  • point — Position

Returns — void

native void PingSetPosition(int p, point position);

Category: Ping / Advanced

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L2686
PingSetPosition(gv_terrorFleetPing, libNtve_gf_CenterOfUnitGroup(gv_terrorFleetGroup))
// L4798
PingSetPosition(lv_topPing, libNtve_gf_CenterOfUnitGroup(gv_patrolTop))
// L4816
PingSetPosition(lv_bottomPing, libNtve_gf_CenterOfUnitGroup(gv_patrolBottom))
// L4848
PingSetPosition(lv_singlePing, libNtve_gf_CenterOfUnitGroup(gv_patrolSingle))
// L1074
PingSetPosition(gv_wall_of_Fire_Ping[gv_ping_Increment], PointWithOffset(UnitGetPosition(gv_wALLOFFIRE), 0.0, gv_ping_VertSpace_Increment))
// L3010
PingSetPosition(lv_airPing, libNtve_gf_CenterOfUnitGroup(gv_airPingGroup))
// L3017
PingSetPosition(lv_airPingBehind, libNtve_gf_CenterOfUnitGroup(gv_airPingGroupBehind))
// L3758
PingSetPosition(gv_kerriganPing, UnitGetPosition(gv_kerrigan))
// L2686
PingSetPosition(gv_terrorFleetPing, libNtve_gf_CenterOfUnitGroup(gv_terrorFleetGroup))
// L4798
PingSetPosition(lv_topPing, libNtve_gf_CenterOfUnitGroup(gv_patrolTop))
// L4816
PingSetPosition(lv_bottomPing, libNtve_gf_CenterOfUnitGroup(gv_patrolBottom))
// L4848
PingSetPosition(lv_singlePing, libNtve_gf_CenterOfUnitGroup(gv_patrolSingle))
// L1074
PingSetPosition(gv_wall_of_Fire_Ping[gv_ping_Increment], PointWithOffset(UnitGetPosition(gv_wALLOFFIRE), 0.0, gv_ping_VertSpace_Increment))
// L3010
PingSetPosition(lv_airPing, libNtve_gf_CenterOfUnitGroup(gv_airPingGroup))
// L3017
PingSetPosition(lv_airPingBehind, libNtve_gf_CenterOfUnitGroup(gv_airPingGroupBehind))
// L3758
PingSetPosition(gv_kerriganPing, UnitGetPosition(gv_kerrigan))
// L422
PingSetPosition(lp_pING, libNtve_gf_CenterOfUnitGroup(lp_gROUP))
// L1024
PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(gv_feralBroodLordsGroup))
// L334
PingSetPosition(lp_ping, UnitGroupCenterOfGroup(lp_unitGroup))
// L4703
PingSetPosition(gv_cleanserTeamPings[lv_index], UnitGroupCenterOfGroup(AIWaveGetUnits(gv_cleanserWaves[lv_index])))
// L1598
PingSetPosition(gv_nullZoneArrowPings[lv_index], PointWithOffsetPolar(UnitGetPosition(gv_kerrigan), lv_currentOffset, lv_angle))
// L1626
PingSetPosition(gv_nullZoneArrowPings[lv_index], PointWithOffsetPolar(UnitGetPosition(gv_kerrigan2), lv_currentOffset, lv_angle))
// L1642
PingSetPosition(gv_nullZoneArrowPings[1], PointWithOffsetPolar(UnitGetPosition(gv_kerrigan22), 12.0, AngleBetweenPoints(UnitGetPosition(gv_kerrigan22), UnitGetPosition(gv_kerrigan))))
// L1643
PingSetPosition(gv_nullZoneArrowPings[2], PointWithOffsetPolar(UnitGetPosition(gv_kerrigan22), 12.0, AngleBetweenPoints(UnitGetPosition(gv_kerrigan22), UnitGetPosition(gv_kerrigan2))))
// L4440
PingSetPosition(gv_killTeam01Ping, UnitGroupCenterOfGroup(gv_killTeam01))
// L4492
PingSetPosition(gv_killTeam02Ping, UnitGroupCenterOfGroup(gv_killTeam02))
// L3643
PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup))
// L3679
PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup))
// L3698
PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup))
// L3768
PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup))
// L3804
PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup))
// L3823
PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup))
// L1169
PingSetPosition(lv_warningPing, UnitGroupCenterOfGroup(gv_aIHarvestGroups[lp_teamIndex]))
// L509
PingSetPosition(lv_groupPing, UnitGroupCenterOfGroup(lp_unitGroup))
// L3341
PingSetPosition(gv_pingAttack, UnitGroupCenterOfGroup(lv_triggeringWaveGroup))
// L422
PingSetPosition(lp_pING, libNtve_gf_CenterOfUnitGroup(lp_gROUP))
// L1024
PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(gv_feralBroodLordsGroup))
// L334
PingSetPosition(lp_ping, UnitGroupCenterOfGroup(lp_unitGroup))
// L4703
PingSetPosition(gv_cleanserTeamPings[lv_index], UnitGroupCenterOfGroup(AIWaveGetUnits(gv_cleanserWaves[lv_index])))
// L1598
PingSetPosition(gv_nullZoneArrowPings[lv_index], PointWithOffsetPolar(UnitGetPosition(gv_kerrigan), lv_currentOffset, lv_angle))
// L1626
PingSetPosition(gv_nullZoneArrowPings[lv_index], PointWithOffsetPolar(UnitGetPosition(gv_kerrigan2), lv_currentOffset, lv_angle))
// L1642
PingSetPosition(gv_nullZoneArrowPings[1], PointWithOffsetPolar(UnitGetPosition(gv_kerrigan22), 12.0, AngleBetweenPoints(UnitGetPosition(gv_kerrigan22), UnitGetPosition(gv_kerrigan))))
// L1643
PingSetPosition(gv_nullZoneArrowPings[2], PointWithOffsetPolar(UnitGetPosition(gv_kerrigan22), 12.0, AngleBetweenPoints(UnitGetPosition(gv_kerrigan22), UnitGetPosition(gv_kerrigan2))))
// L4440
PingSetPosition(gv_killTeam01Ping, UnitGroupCenterOfGroup(gv_killTeam01))
// L4492
PingSetPosition(gv_killTeam02Ping, UnitGroupCenterOfGroup(gv_killTeam02))
// L3643
PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup))
// L3679
PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup))
// L3698
PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup))
// L3768
PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup))
// L3804
PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup))
// L3823
PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup))
// L1169
PingSetPosition(lv_warningPing, UnitGroupCenterOfGroup(gv_aIHarvestGroups[lp_teamIndex]))
// L509
PingSetPosition(lv_groupPing, UnitGroupCenterOfGroup(lp_unitGroup))
// L3341
PingSetPosition(gv_pingAttack, UnitGroupCenterOfGroup(lv_triggeringWaveGroup))
// L777
PingSetPosition(lv_wavePing, UnitGroupCenterOfGroup(lp_unitGroup))
// L1261
PingSetPosition(lv_wavePing, UnitGroupCenterOfGroup(lp_waveGroup))
// L400
PingSetPosition(lv_hybridPing, UnitGroupCenterOfGroup(lp_unitGroup))
// L1161
PingSetPosition(lp_ping, UnitGroupCenterOfGroup(lp_unitGroup))
// L1187
PingSetPosition(lv_wavePing, UnitGroupCenterOfGroup(lp_waveGroup))
// L622
PingSetPosition(gv_taldarimFleetPing[lp_pingIndex], UnitGetPosition(lp_escortUnit))
// L559
PingSetPosition(lp_ping, UnitGroupCenterOfGroup(lp_unitGroup))
// L580
PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lp_constructGroup))
// L671
PingSetPosition(lv_ping, UnitGroupCenterOfGroup(lv_waveGroup))
// L4381
PingSetPosition(gv_retributionGroupPing, UnitGroupCenterOfGroup(gv_retributionGroup))
// L4286
PingSetPosition(gv_introDirectionalWavePing, UnitGroupCenterOfGroup(gv_introDirectionalWave))
// L4468
PingSetPosition(gv_introDirectionalWavePing, UnitGroupCenterOfGroup(gv_introDirectionalWave))
// L777
PingSetPosition(lv_wavePing, UnitGroupCenterOfGroup(lp_unitGroup))
// L1261
PingSetPosition(lv_wavePing, UnitGroupCenterOfGroup(lp_waveGroup))
// L400
PingSetPosition(lv_hybridPing, UnitGroupCenterOfGroup(lp_unitGroup))
// L1161
PingSetPosition(lp_ping, UnitGroupCenterOfGroup(lp_unitGroup))
// L1187
PingSetPosition(lv_wavePing, UnitGroupCenterOfGroup(lp_waveGroup))
// L622
PingSetPosition(gv_taldarimFleetPing[lp_pingIndex], UnitGetPosition(lp_escortUnit))
// L559
PingSetPosition(lp_ping, UnitGroupCenterOfGroup(lp_unitGroup))
// L580
PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lp_constructGroup))
// L671
PingSetPosition(lv_ping, UnitGroupCenterOfGroup(lv_waveGroup))
// L4381
PingSetPosition(gv_retributionGroupPing, UnitGroupCenterOfGroup(gv_retributionGroup))
// L4286
PingSetPosition(gv_introDirectionalWavePing, UnitGroupCenterOfGroup(gv_introDirectionalWave))
// L4468
PingSetPosition(gv_introDirectionalWavePing, UnitGroupCenterOfGroup(gv_introDirectionalWave))
// L4105
PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(gv_siegeGiantsMercs))
// L4105
PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(gv_siegeGiantsMercs))

# mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod

LibPEB1.galaxy

// L1442
PingSetPosition(lv_attackPing1, lv_pingPos)
// L1444
PingSetPosition(lv_attackPing2, lv_pingPos)
// L1486
PingSetPosition(lv_attackPing, UnitGroupCenterOfGroup(lp_attackGroup))

# mods/novastoryassets.sc2mod

MapScript.galaxy

// L4409
PingSetPosition(lv_waveGroupPing, UnitGroupCenterOfGroup(lv_waveGroup))
// L824
PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lp_unitGroup))
// L2895
PingSetPosition(lv_trackedPing, lv_trackedPingPoint)
// L1205
PingSetPosition(lv_ping, UnitGroupCenterOfGroup(lp_waveUnitGroup))
// L2899
PingSetPosition(gv_subwayPings[3], PointFromId(2396))
// L2918
PingSetPosition(gv_subwayPings[2], PointFromId(3284))
// L2937
PingSetPosition(gv_subwayPings[4], PointFromId(2397))
// L503
PingSetPosition(lv_ping, UnitGroupCenterOfGroup(lp_waveUnitGroup))
// L836
PingSetPosition(lv_ping, UnitGroupCenterOfGroup(lp_waveUnitGroup))
// L4409
PingSetPosition(lv_waveGroupPing, UnitGroupCenterOfGroup(lv_waveGroup))
// L824
PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lp_unitGroup))
// L2895
PingSetPosition(lv_trackedPing, lv_trackedPingPoint)
// L1205
PingSetPosition(lv_ping, UnitGroupCenterOfGroup(lp_waveUnitGroup))
// L2899
PingSetPosition(gv_subwayPings[3], PointFromId(2396))
// L2918
PingSetPosition(gv_subwayPings[2], PointFromId(3284))
// L2937
PingSetPosition(gv_subwayPings[4], PointFromId(2397))
// L503
PingSetPosition(lv_ping, UnitGroupCenterOfGroup(lp_waveUnitGroup))