Skip to content
KaWeNGoD edited this page Dec 2, 2014 · 5 revisions

Partymemberlist

  • This list holds all partymembers. Since the data of your partymembers is not available when they are not in your local map or in range, you can use this Partymemberlist to still aquire limited data about your party.
  • Alternative way to get all partymembers is by using the EntityList with the filter "myparty".
  • The Partymemberlist sits in the Index of the EntityList and can be directly accessed by:
local partymemberlist= EntityList.myparty
if ( partymemberlist) then
   local i,entity = next(partymemberlist)
   while (i~=nil and entity ~=nil) do
      -- the 'd' command is a global command for printing out information into the console
      d("EntityID : ".. tostring(i).. " Name : "..tostring(entity.name))  
      i,entity  = next(partymemberlist,i)  
   end  
end

Attributes of the Partymemberlist entries

id
Returns EntityID "number".
mapid
Returns the MapID where this Entity currently is in "number".
name
Returns Entity name "string".
isleader
Returns if the Entity is the partyleader (boolean).
pos
Returns Entity position table. Beware, this data is returning wrong values when you are not in the same map! "number".
-- the 'd' command is a global command for printing out information into the console
local postable = Player.pos
d(postable.x) -- x position
d(postable.y) -- y position
d(postable.z) -- z position