XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 3 of 3

Thread: Map.IsTileWalkable() <- How to use it?

  1. #1
    mikjail's Avatar
    Join Date
    Jan 2016
    Location
    Venezuela
    Posts
    39
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Map.IsTileWalkable() <- How to use it?

    Hi, I'm trying to know if a certain position is walkable, this what I got:

    Code:
    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)

  2. #2
    Moderator Elvang's Avatar
    Join Date
    Dec 2010
    Location
    B.C. Canada
    Posts
    1,365
    Mentioned
    104 Post(s)
    Tagged
    1 Thread(s)
    0 means false, and doors probably throw false every time regardless if it's open or closed

  3. #3
    mikjail's Avatar
    Join Date
    Jan 2016
    Location
    Venezuela
    Posts
    39
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    @Elvang

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •