C_PingSecure.SendPing

From Warcraft Wiki
Jump to navigation Jump to search

Sends a ping to all members of your current group.

result = C_PingSecure.SendPing(type [, target])

Arguments

type
Enum.PingSubjectType
Value Field Description
0 Attack
1 Warning
2 Assist
3 OnMyWay
4 AlertThreat
5 AlertNotThreat
target
string? : WOWGUID

Returns

result
Enum.PingResult
Value Field Description
0 Success
1 FailedSpamming
2 FailedInvalidTarget
3 FailedDisabledByLeader
4 FailedUnspecified

Details

  • To submit a ping to an in-world location, first call C_PingSecure.GetTargetWorldPing with the screen position to place the ping at. If it returns true, call this function with the target parameter omitted or set to nil.
  • To submit a ping that will display over a unit, the target parameter must be a valid unit GUID.
  • Pings for units only support a limited subset of unit types. Creatures, Pets, Players, and Vehicles can all be pinged, but GameObjects such as gathering nodes and treasure chests cannot.

Patch changes

Dragonflight Patch 10.1.7 (2023-09-05): Added.