Wikia

WoWWiki

API CanSummonFriend

Talk0
98,454pages on
this wiki

Returns whether you can RaF summon a particular unit.

summonable = CanSummonFriend("unit")

Arguments Edit

unit 
String (UnitId) - player to check whether you can summon.

Returns Edit

summonable 
Flag - 1 if you can summon the unit using RaF, nil otherwise.

Example Edit

The snippet below checks whether you can summon the target, and, if so, whispers and summons her to you.

local t = "target"; 
if CanSummonFriend(t) then 
  SendChatMessage("I am summoning you!","WHISPER",nil,t) 
  SummonFriend(t) 
end
Advertisement | Your ad here

Photos

Add a Photo
61,968photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki