Проблема с HAT

0
Посетители
0
Новичок
Установил HAT, пытаюсь применитиь селектор на модели, а он пишет AddThreadEntity (нулевое значение) как исправить ? Ошибка в строке 22

TOOL.Category = "HAT Tools"
TOOL.Name = "Selector"
TOOL.Command = nil
TOOL.ConfigName = ""

if (CLIENT) then

language.Add("Tool_hanim_select_name","Selector")
language.Add("Tool_hanim_select_desc","Selects an entity to use with HAT.")
language.Add("Tool_hanim_select_0","Primary: Select entity. Secondary: Deselect entity")

function TOOL.BuildCPanel(CPanel)

end

end


function TOOL:LeftClick(tr)
if !tr.Entity:IsValid() or tr.Entity:IsWorld() then return end
if type(tr.Entity) != "Entity" and type(tr.Entity) != "Vehicle" then return end
22> hanim.AddThreadEntity(tr.Entity)
hanim.clAddThreadEntity(tr.Entity)
return true
end

function TOOL:RightClick(tr)
if !tr.Entity:IsValid() or tr.Entity:IsWorld() then return end
hanim.RemoveThreadEntity(tr.Entity)
hanim.clRemoveThreadEntity(tr.Entity)
return true
end
Посетители
0
Активный участник
Администраторы
0
Evil Monster
ser77 (01.12.2012, 12:58) писал:как исправить ?
Изучить lua и исправить.
 
Тема закрыта.
  • Данная тема закрыта. Вы не можете отвечать в ней.