Target yourself or Party Member
I've read all HD Turbine API docuemntation, but didn't found a method to target yourself or a party member by name.
I think there is a workaround, because I saw PartyFrames plugins makes this. I downlaoded PartyFrames plugin and tried to get how it is realized there, but there are too much functions, i couldnt find target function. |
There is no way to set a target via Lua. All you can do is get the target of any Actor element using the GetTarget() function. Turbine will not expose setting a target because it would expose the game to automation and exploits.
|
Quote:
|
Quote:
|
Quote:
|
Im sorry, but I cant figure out how ENtity control works.
Here's the code that I found Code:
self.select = Turbine.UI.Lotro.EntityControl(); I tried setting Turbine.UI.LocalPlayer, but it didn't work. How can I get target to work? |
Actors will be in Turbine.Gameplay not Turbine.UI as they are game objects not UI objects. Additionally, the local player is a special case, a couple of years ago Turbine ran into some issues using the Turbine.Gameplay.LocalPlayer reference so they resolved this by making us get an instance of the local player by calling Turbine.Gameplay.LocalPlayer:GetInstance(). So, an Entity with a blue background in the middle of a simple test window would look like this:
Code:
testWindow=Turbine.UI.Lotro.Window() I would suggest you check out the thread: https://www.lotro.com/forums/showthr...gins-for-Noobs Its gotten buried pretty far down the forum list since I haven't published anything new there lately but it will probably answer a lot of your questions if you are new to using Lua in LotRO. |
Quote:
|
All times are GMT -5. The time now is 03:48 PM. |
vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI