View Single Post
  #2  
Unread 10-06-2022, 11:20 AM
Garan's Avatar
Garan Garan is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Oct 2010
Posts: 341
I haven't played with it in a while, but what you want is a Turbine.UI.Lotro.Entity control. For some reason, my docs are missing the GetEntity and SetEntity methods of the control, but they return/take an Entity object. In your case you want to pass the local player, so:
myEntity=Turbine.UI.Lotro.Entity()
myEntity:SetEntity(Turbine.Gameplay.LocalPlayer:Ge tInstance())

-- note, you obviously have to set the control on a window and size it properly, etc.
The Entity control will provide context sensitive menus based on which entity is passed to SetEntity()
Reply With Quote