Sigoles
Discord: @sigoles
- Joined
- Nov 20, 2015
- Messages
- 1,209
- Solutions
- 2
- Reaction score
- 154
LUA:
local position = player:getPosition()
position:getNextPosition(player:getDirection())
local tile = Tile(position)
if not tile then
player:sendCancelMessage("You have to be looking at the door of the house you would like to buy.")
return false
end
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
This script does not check if player is facing a door, how to fix it?
tfs 1.2