Inspect.Unit.List

From Riftui Wiki

Jump to: navigation, search

Returns a table of units currently known to the client

Contents

Signature

units = Inspect.Unit.List()

Parameters

Return Value

unit_table = {
  unit_identifier, unitid,
  unit_identifier, unitid
}

Example

local function GetRaidMembers()
	return Inspect.Unit.List()
end

Notes

The unit_identifier is of the form of a GUID string and uniquely identifies that unit. The unitids are of the form player, player.target, groupXX, groupXX.target etc. Where XX is 01 through to 20.

The list of units always seems to include pets and targets in addition to players in your group/raid.

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox