• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua check if tile is walkable TFS 0.2.14

Fermantor

Active Member
Joined
Dec 16, 2009
Messages
209
Solutions
4
Reaction score
34
Location
Germany
Hello everyone, I just want to know, if it's possible in TFS 0.2.14 to check, if a tile is walkable or not (a wall or not).
I guess you use this function
Code:
getTileInfo(pos)
But I don't know what parameters you can check (I already tried "moveable" and "blocksolid")
If someone could give me a list of parameters, that would be great :)
 
404 function getClosestFreeTile not found in 0.2 distros
unless...
Code:
\1.0\src\commands.cpp (6 hits)
    Line 385:     Position newPosition = g_game.getClosestFreeTile(player, 0, destPos, true);
    Line 404:         Position newPosition = g_game.getClosestFreeTile(player, paramCreature, player->getPosition(), false);
    Line 582:         Position newPosition = g_game.getClosestFreeTile(player, 0, town->getTemplePosition(), true);
    Line 603:         Position newPosition = g_game.getClosestFreeTile(player, 0, paramCreature->getPosition(), true);
    Line 719:         Position newPosition = g_game.getClosestFreeTile(player, 0, newPos, true);
    Line 973:     Position newPosition = g_game.getClosestFreeTile(player, 0, newPos, true);
  \1.0\src\game.cpp (1 hits)
    Line 5464: Position Game::getClosestFreeTile(Player* player, Creature* teleportedCreature, const Position& toPos, bool teleport)
  \1.0\src\game.h (1 hits)
    Line 383:         Position getClosestFreeTile(Player* player, Creature* teleportedCreature, const Position& toPos, bool toCreature);
 
Back
Top