WoW:API SummonFriend: Difference between revisions
Jump to navigation
Jump to search
m (stub for more context) |
|||
Line 31: | Line 31: | ||
<!-- If it helps, include example results here, though they are not required. You're allowed to cheat liberally since WoW isn't a command line language. --> | <!-- If it helps, include example results here, though they are not required. You're allowed to cheat liberally since WoW isn't a command line language. --> | ||
If you can summon the target, you whisper and summon him/her to you. Check out [[ | If you can summon the target, you whisper and summon him/her to you. Check out [[API CanSummonFriend|CanSummonFriend]]() for details about that function. |
Revision as of 12:17, 29 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.