Fortera Global
Intermediate OT User
- Joined
- Nov 20, 2015
- Messages
- 1,180
- Solutions
- 2
- Reaction score
- 117
How to check if the front tile is a house door?
tfs 1.2
thanks
Lua:
local tile = Tile(position)
local house = tile and tile:getHouse()
if not house then
player:sendCancelMessage("You have to be looking at the door of the house you would like to buy.")
return false
end
tfs 1.2
thanks