Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API CanSummonFriend

Last wiki revision 2022-07-26

Returns whether you can RaF summon a particular unit. summonable = CanSummonFriend(unit)

  • unit: : UnitId - The player to check whether you can summon.
  • summonable: - 1 if you can summon the unit using RaF, nil otherwise.

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

Source

https://warcraft.wiki.gg/wiki/API_CanSummonFriend · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.