View Single Post
  #5  
Unread 10-06-2022, 12:15 PM
Flan Flan is offline
The Wary
 
Join Date: Oct 2022
Posts: 4
Quote:
Originally Posted by Garan
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()
So this is the problem i have ran into!
... Rings Online\Plugins\TurbinePlugins\Vitals\Main.lua:14: attempt to call field 'Entity' (a nil value)

I am completely new to lua programming and definitely plugins so if you could help me more it would be appreciated!

I just want the Its You "name"!!!!! option menu

Last edited by Flan : 10-06-2022 at 12:48 PM.
Reply With Quote