WoW API: CanCooperateWithToon

From AddOn Studio
Revision as of 20:05, 6 July 2010 by WoWWiki>Starinnia (Created page with '{{framexmlfunc|FrameXML/FriendsFrame.lua}} __NOTOC__ Determines if the player can cooperate with another player character CanCooperateWithToon(toonID); == Arguments == ;toon…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < CanCooperateWithToon

"I" iconThis function is implemented in Lua here FrameXML/FriendsFrame.lua.

Determines if the player can cooperate with another player character

canCooperate = CanCooperateWithToon(toonID);


Arguments

toonID
number - determined from the 5th return of BNGetFriendInfo(friendIndex)


Returns

canCooperate
boolean - true if and only if the toon represented by the toonID is on the same realm and faction as the player