WoW:API SummonFriend: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (New page: {{wowapi}} __NOTOC__ <!-- Describe the purpose of the function, exhausting detail can be saved for a later section --> <!-- List return values and arguments as well as function name, foll...)
 
m (stub for more context)
Line 1: Line 1:
{{stub/API}}
{{wowapi}} __NOTOC__
{{wowapi}} __NOTOC__



Revision as of 02:59, 21 August 2008

WoW API < SummonFriend

SummonFriend("unit")

Arguments

("unit")
unit
UnitId or a name you want to summon to you.


Returns

Nothing


Example

local t = "Zuotheshaman"; 
if CanSummonFriend(t) then 
  SendChatMessage("I am summoning you!","WHISPER",nil,t) 
  SummonFriend(t) 
end 


Result

If you can summon the target, you whisper and summon him/her to you. Check out CanSummonFriend() for details about that function.