WoW API: SummonFriend
Jump to navigation
Jump to search
← 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.