WoW:API CanJoinBattlefieldAsGroup: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(New page: {{wowapi}} __NOTOC__ Returns, whether the player can join a battlefield as group or not. isTrue = CanJoinBattlefieldAsGroup() == Arguments == none == Returns == :;isTrue : Boolean - ...)
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
Returns, whether the player can join a battlefield as group or not.
Returns, whether the player can join a battlefield as group or not.
  isTrue = CanJoinBattlefieldAsGroup()
  isTrue = CanJoinBattlefieldAsGroup()
 
 
== Arguments ==
== Arguments ==
none
none


== Returns ==
== Returns ==
:;isTrue : Boolean - returns true, if the player can join the battlefield as group
:;isTrue : Boolean - returns true, if the player can join the battlefield as group


== Example ==
== Example ==

Latest revision as of 06:48, 15 August 2023

WoW API < CanJoinBattlefieldAsGroup

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

isTrue = CanJoinBattlefieldAsGroup()

Arguments[edit]

none

Returns[edit]

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

Example[edit]

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.