• 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!

Lua Tile not found

natanal99

New Member
Joined
May 31, 2011
Messages
67
Reaction score
3
I wrote a spell that search for monsters in an area around the player's target.
Im using this function:
getThingfromPos(pos)
And as you know everytime i try to 'getThing' from a pos that don't have any ground it returns an error in console.
(luaGetThingFromPos) Tile not found
Is there anyway i can check the position before 'getThing' to avoid this error?
 
I wrote a spell that search for monsters in an area around the player's target.
Im using this function:

And as you know everytime i try to 'getThing' from a pos that don't have any ground it returns an error in console.

Is there anyway i can check the position before 'getThing' to avoid this error?
//getThingFromPos(pos[, displayError = true])

Try getThingFromPos(pos, false) :p
 
Im in tfs 0.3.6 this function don't have the displayError option :/
and actually my problem isn't just the annoying error in console, the server freezes for 2~3 seconds when i use the spell next to somewhere groundless.
 
Back
Top