• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

getTargetDir

Core_

Well-Known Member
Joined
Jul 9, 2010
Messages
1,557
Solutions
1
Reaction score
50
Well, that's what I wan't some function that works like that.
Like when you attack something, and then cast a spell you automatically turn to the target, but, I didn't find a way to emulate :3
"doCreatureSetLookDirection(cid, target)" doesn't work
 
LUA:
[28/10/2011 22:47:07] [Error - TalkAction Interface] 
[28/10/2011 22:47:07] data/talkactions/scripts/direction.lua:onSay
[28/10/2011 22:47:07] Description: 
[28/10/2011 22:47:07] (luaGetThingPosition) Thing not found

[28/10/2011 22:47:08] [Error - TalkAction Interface] 
[28/10/2011 22:47:08] data/talkactions/scripts/direction.lua:onSay
[28/10/2011 22:47:08] Description: 
[28/10/2011 22:47:08] data/lib/032-position.lua:17: attempt to index local 'pos2' (a boolean value)
[28/10/2011 22:47:08] stack traceback:
[28/10/2011 22:47:08] 	data/lib/032-position.lua:17: in function 'getDirectionTo'

Ye I tried this one before but same thing happened


LOL nvm it just happens when I don't have a target :3 thanks!!
 
Last edited:
Back
Top