View Single Post
  #6  
Unread 09-12-2014, 12:23 PM
artouiros artouiros is offline
The Undefeated
 
Join Date: Sep 2014
Posts: 6
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();
	self.select:SetParent(self);
	self.select:SetPosition(0, 0);
	self.select:SetMouseVisible(true);
	self.select:SetEntity(actor);
	self.select:SetSelectionEnabled(true);
	self.select:SetContextMenuEnabled(true);
	self.select:SetSize(self:GetSize());
	self:SetMouseVisible(true);
I don't know how to get the actor for self.select:SetEntity(actor);
I tried setting Turbine.UI.LocalPlayer, but it didn't work. How can I get target to work?
Reply With Quote