Thread: How do i make it so im close to an object then it teles

Results 1 to 7 of 7
  1. #1 How do i make it so im close to an object then it teles 
    Registered Member BryceTheCoder's Avatar
    Join Date
    Aug 2008
    Posts
    740
    Thanks given
    21
    Thanks received
    24
    Rep Power
    27
    Ok, so like i have a portal and in my object option 1 .java it just show the case blahblah:
    then the tele coords and break; if i click it when im not really near the portal. it will tele me to that spot. How do i make it walk close to it then it will tele me if im close to it???
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Jul 2008
    Posts
    539
    Thanks given
    4
    Thanks received
    8
    Rep Power
    89
    Quote Originally Posted by therehere3 View Post
    Ok, so like i have a portal and in my object option 1 .java it just show the case blahblah:
    then the tele coords and break; if i click it when im not really near the portal. it will tele me to that spot. How do i make it walk close to it then it will tele me if im close to it???
    It would be better if you used a coor event to handle it.
    Be smart, but never show it.



    List of scammers - `Luke, nym0, tim xxx.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2010
    Age
    31
    Posts
    34
    Thanks given
    0
    Thanks received
    0
    Rep Power
    20
    Code:
    if distance(.....) < 5
    teleport(....)
    else
    walkTo(....)
    objectOption1 = true
    or something like that
    Reply With Quote  
     

  4. #4  
    Registered Member BryceTheCoder's Avatar
    Join Date
    Aug 2008
    Posts
    740
    Thanks given
    21
    Thanks received
    24
    Rep Power
    27
    what are u talking about milka?
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jun 2010
    Age
    31
    Posts
    34
    Thanks given
    0
    Thanks received
    0
    Rep Power
    20
    Quote Originally Posted by therehere3 View Post
    what are u talking about milka?
    distance's parameter would be the object coords

    walkto's parameter would be like 1 square a way from the object coords
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Aug 2009
    Posts
    1,712
    Thanks given
    96
    Thanks received
    198
    Rep Power
    78
    Add an event that stops if the walking dirs are 0, and that tellies u if correct loc
    removed
    Reply With Quote  
     

  7. #7  
    Registered Member BryceTheCoder's Avatar
    Join Date
    Aug 2008
    Posts
    740
    Thanks given
    21
    Thanks received
    24
    Rep Power
    27
    milka can u please tell me the exact code, cuz that sounds pretty good..
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

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