WoW API: CanJoinBattlefieldAsGroup

From AddOn Studio
Revision as of 06:48, 15 August 2023 by Bear (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < CanJoinBattlefieldAsGroup

Returns, whether the player can join a battlefield as group or not.

isTrue = CanJoinBattlefieldAsGroup()

Arguments

none

Returns

isTrue
Boolean - returns true, if the player can join the battlefield as group

Example

if(CanJoinBattlefieldAsGroup()) then
 JoinBattlefield(0,1) -- join battlefield as group
else
 JoinBattlefield(0,0) -- join battlefield as single player
end

Result

Queries the player either as group or as single player.