Log in

View Full Version : Map.IsTileWalkable() <- How to use it?



mikjail
08-23-2016, 08:13 PM
Hi, I'm trying to know if a certain position is walkable, this what I got:



elseif (labelName == "UseDoor1") then
print(Map.IsTileWalkable(32657, 31965, 8))
Walker.Stop() -- Ignore this line


I'm trying to make a conditional to check whether a door is open or not but when I print the (x, y, z) coordinates of the door it keep printing (0) even if the door is open why? it suppose to return true but always return (0)

Elvang
08-24-2016, 12:37 AM
0 means false, and doors probably throw false every time regardless if it's open or closed

mikjail
08-24-2016, 08:28 PM
Elvang

Thanks for deleting my thread, I forgot to tell you to delete my account. Its possible?