WoW:API GetNumPartyMembers: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 18: Line 18:
==See Also==
==See Also==
* [[API GetNumRaidMembers|GetNumRaidMembers]]
* [[API GetNumRaidMembers|GetNumRaidMembers]]
* [[API GetPartyMember|GetPartyMember]]

Revision as of 20:30, 30 November 2009

WoW API < GetNumPartyMembers

Returns number of party members.

numberOfPartyMembers = GetNumPartyMembers();

Parameters

Returns

numberOfPartyMembers
Integer - The number of party members - from 0 to 4 (excluding the player).

Example

local n = GetNumPartyMembers();
if (n > 0) then 
 message("There are " .. n .. " other people in your party.");
end

Result

Displays a message stating the number of people in the player's current party.

See Also