View Single Post
  #5  
Unread 09-12-2014, 11:04 AM
artouiros artouiros is offline
The Undefeated
 
Join Date: Sep 2014
Posts: 6
Quote:
Originally Posted by Garan
Yes, I guess I should elaborate. That's not done programmatically, it's built into the Entity control (check PartyMemberWindow.lua). As noted above, you can not set a target programmatically. You can however create an instance of a control that represents an entity which a user can then interact with - the important distinction is that the control requires user interaction and can not be controlled programmatically via Lua. That is why no matter how hard you look you will not find Lua code that sets the target, it is part of Turbine's client code that implements the Entity control. You indicated that you were trying to set the target by name, which is not what PartyFrames is doing. Hopefully that is clearer. If you wish to set the target in response to a user click on a control, that CAN be accomplished (for a limited set of targets) via the Entity control.
Thank you for watching the code and pointing me to the Entity class. I didn't knew I could use Entity control in this way. In my question I asked for targeting by name, beucase I was sure PartyFrame does it in this way, now I know it's not.
Reply With Quote