Results 1 to 5 of 5

Thread: CanReach(Tile)

  1. #1
    Join Date
    Apr 2007
    Posts
    373
    Mentioned
    2 Post(s)
    Quoted
    24 Post(s)

    Default CanReach(Tile)

    Is there a way or existing function that i can use to see if a certain tile is walkable.
    No obstacles in the way (door, gates, ...)
    ~Fre

  2. #2
    Join Date
    Oct 2016
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Most doors/gates are represented by red lines on the minimap.


    If you are walking via the minimap:
    1) Get the destination point
    2) Create a straight line from current position to destination.
    3) See if there are red lines intersecting the line you created.
    4) If there are, then you'll have to check to see if a door is closed. Otherwise, you're good to go.

    If you are walking via the mainscreen:
    1) Convert destination point on mainscreen to a point on the minimap.
    2) Do the same thing as walking via minimap.

  3. #3
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Thought there was a function called TTile.walkable():boolean I may be wrong though

  4. #4
    Join Date
    Jun 2013
    Location
    Scranton
    Posts
    496
    Mentioned
    5 Post(s)
    Quoted
    220 Post(s)

    Default

    He's talking about Reflection on OSRS

  5. #5
    Join Date
    Dec 2013
    Location
    Pitcairn Island
    Posts
    288
    Mentioned
    20 Post(s)
    Quoted
    166 Post(s)

    Default

    Quote Originally Posted by fre View Post
    Is there a way or existing function that i can use to see if a certain tile is walkable.
    No obstacles in the way (door, gates, ...)
    Not without collision data.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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