Trying do that:
https://i.imgur.com/0CpELzV.gif
/\ It auto turn our character looking dir to the target pos
For tfs 1.0
Did this code in creature.lua :
But not working, could any help?
Author Credits:- xWhiteWolf
Anderson Faria
https://i.imgur.com/0CpELzV.gif
/\ It auto turn our character looking dir to the target pos
For tfs 1.0
Did this code in creature.lua :
Code:
function Creature:onTargetCombat(target)
if Creature(cid) and Creature(target) then
dir = getDirectionTo(creature:getPosition(), creature:getPosition(target))
creature:setDirection(cid, dir)
end
return true
end
But not working, could any help?
Author Credits:- xWhiteWolf
Anderson Faria
Last edited: