Thread: Turn player to object?

Results 1 to 6 of 6
  1. #1 Turn player to object? 
    Banned

    Join Date
    Jun 2012
    Posts
    653
    Thanks given
    233
    Thanks received
    128
    Rep Power
    0
    Ok, so I rewrote my woodcutting and mining today and now I need a way to turn my player towards they object they are using. How would I do it? Anyone got a method or something, and can show the code I use to initialize it when I click on the object?
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Oct 2011
    Age
    23
    Posts
    1,891
    Thanks given
    309
    Thanks received
    558
    Rep Power
    703
    Code:
    c.turnPlayerTo(x, y);
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Jun 2012
    Posts
    653
    Thanks given
    233
    Thanks received
    128
    Rep Power
    0
    Quote Originally Posted by Revival View Post
    Code:
    c.turnPlayerTo(x, y);
    could i put
    Code:
    c.turnPlayerTo(c.objectx, c.objecty);
    ?
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Sep 2012
    Posts
    1,038
    Thanks given
    193
    Thanks received
    123
    Rep Power
    0
    Quote Originally Posted by God Eclipse View Post
    could i put
    Code:
    c.turnPlayerTo(c.objectx, c.objecty);
    ?
    why not try it and find out?
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Jan 2008
    Age
    26
    Posts
    1,380
    Thanks given
    76
    Thanks received
    384
    Rep Power
    962
    Quote Originally Posted by God Eclipse View Post
    could i put
    Code:
    c.turnPlayerTo(c.objectx, c.objecty);
    ?
    Yes you're using the a Mask. There is a mask in the client that will turn the player towards a set of X and Y Coords. If you put there 3222,3222 you will look towards lumbridge.
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Jun 2012
    Posts
    653
    Thanks given
    233
    Thanks received
    128
    Rep Power
    0
    Thanks for your help guys it worked. It really kind of bugged me having my player start woodcutting when he was looking the other way lol.
    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

Similar Threads

  1. Some help with object turn on login
    By Mr House in forum Help
    Replies: 1
    Last Post: 01-22-2012, 06:55 PM
  2. Ctrl + Arrow key to turn player.
    By thim slug in forum Help
    Replies: 4
    Last Post: 07-28-2011, 10:27 AM
  3. How to turn a Object
    By Dreamweaver in forum Help
    Replies: 18
    Last Post: 09-24-2010, 11:37 PM
  4. how do i turn trade off for player rights 3
    By dannysitu in forum Help
    Replies: 6
    Last Post: 11-10-2009, 07:53 PM
  5. Turn player to NPC
    By Laxika in forum Tutorials
    Replies: 5
    Last Post: 05-13-2008, 08:34 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •