View Single Post
  #6  
Unread 10-03-2011, 08:44 AM
Garan's Avatar
Garan Garan is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Oct 2010
Posts: 341
Quote:
Originally Posted by KRc
Thank you so much! I'd gone so far down meandering roads I doubt I could have come back to anything so simple by myself. What a relief.

*Wipes brow and gets on with things.*

PS though, a little typo in your example: you need to change tmpIndex to memberIndex in the line:

Code:
Turbine.Shell.WriteLine("Member(".. tmpIndex ..") Name:"..member:GetName().." Class:"..member:GetClass())
Regardless, it worked great.
Thanks for catching the typo. It's a pain copying and pasting from my Interactive Debug window so I got lazy and retyped it.

I accidentally made a slightly misleading statement earlier, while PartyMember has the same methods as Player, it isn't because it inherits from Player, more likely it inherits from Actor. If you want to see the Methods and Events that are likely available on the PartyMember, you should probably look at the Actor object in the Turbine Lua API docs.
Reply With Quote