Results 1 to 5 of 5

Thread: Goto nearest waypoint

  1. #1
    iBot User
    Join Date
    Sep 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Goto nearest waypoint

    I'm looking for an action that will check where I am in my waypoints judging out of where I'm standing on the map(xyz) and go to the nearest previous waypoint.
    I'm not talkin about the action "islocation", just to make that clear!

    I've tried creating myself but had no success with it yet so thought I'd post on here if theres anyone who could help out.


    Hope you guys can help me out here!

  2. #2
    iBot User
    Join Date
    Sep 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    No1 around that wud like to give it a shot?

  3. #3
    Focus Group bofing's Avatar
    Join Date
    Jun 2012
    Location
    Poland
    Posts
    664
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    52 Post(s)
    Reputation
    95
    Rep Power
    6
    PHP Code:
    if posx == 1111 and posy == 2222 and posz 3 then gotolabel("yourwaypoint")
    end 
    or make it in this way

    PHP Code:
    if posx 1111 and posy 2222 and posz 3 then gotolabel("yourwaypoint2")
    end 
    and so on, you can mix this action until you get your result


    "yourwaypoint" is label of a waypoint you want to go if x,y,z possition

  4. #4
    iBot User
    Join Date
    Sep 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Ok, looks good but its not exactly what Im looking for, I was more thinkin like, if lost the bot will check which of the waypoints is closest to me and Im talkin about normal waypoints e.g. "wp001" or "wp020", well it checks for any waypoint that is close to me and go there, not just the labels.

    I hope you understand what I mean haha

    I'm not sure if this is possible to make but, atleast worth to check if it is.

  5. #5
    Normal User
    Join Date
    May 2012
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    I was tryin to do that thing too but no sucess, i am getting stuck many times when the bot go crazy and pass the wpts :PpP

Posting Permissions

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