WoW:API IsInGroup: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Created page with "{{wowapi}} ''Added in {{mists-inline}} 5.0.4'' isGroup = IsInGroup() Determines if the player is in a raid type group. == Returns == :;isGroup: true if the player is in ...")
 
(no need to use the function twice in if/else statement; removed notes)
Line 13: Line 13:
   if IsInGroup() then
   if IsInGroup() then
       DEFAULT_CHAT_FRAME:AddMessage ("I am in some kind of Group.");
       DEFAULT_CHAT_FRAME:AddMessage ("I am in some kind of Group.");
   elseif not IsInGroup() then
   else
       DEFAULT_CHAT_FRAME:AddMessage ("I am not in any kind of Group.");
       DEFAULT_CHAT_FRAME:AddMessage ("I am not in any kind of Group.");
   end
   end
Line 19: Line 19:
== Patch history ==
== Patch history ==
{{Patch 5.0.4|note=Added for status help due to removed {{api|GetNumRaidMembers}} and {{api|GetNumPartyMembers}}.}}
{{Patch 5.0.4|note=Added for status help due to removed {{api|GetNumRaidMembers}} and {{api|GetNumPartyMembers}}.}}
== Notes ==

Revision as of 15:56, 12 October 2012

WoW API < IsInGroup

Added in Template:Mists-inline 5.0.4

 isGroup = IsInGroup() 

Determines if the player is in a raid type group.

Returns

isGroup
true if the player is in a some kind of group, otherwise false

Example

 if IsInGroup() then
     DEFAULT_CHAT_FRAME:AddMessage ("I am in some kind of Group.");
 else
     DEFAULT_CHAT_FRAME:AddMessage ("I am not in any kind of Group.");
 end

Patch history

Template:Mists-inline <span style="" title="Patch 5.0.4">Patch 5.0.4</span> (patch date::28-August-2012): Added for status help due to removed GetNumRaidMembers and GetNumPartyMembers.