Thread: Kbd gates not working right

Results 1 to 3 of 3
  1. #1 Kbd gates not working right 
    Registered Member
    Trock's Avatar
    Join Date
    Jul 2009
    Age
    28
    Posts
    1,915
    Thanks given
    14
    Thanks received
    66
    Rep Power
    532
    Code:
             case 1596:
             case 1597:
    			if (c.getY() >= c.objectY)
    				c.getPA().walkTo(0, -1);
    			else
    				c.getPA().walkTo(0, 1);
    		break;

    thats my code for those type of gates theres gates like that at kbd but with that code ot walks to the right .... but at the other gates with the same id as this they work fine..


    I'm just confused


    will rep
    Quote Originally Posted by Psyduck View Post
    Vouch

    Quote Originally Posted by VelSion View Post
    Huge Vouch, made so many deals with him, went smoothly!
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Sep 2008
    Posts
    4,833
    Thanks given
    894
    Thanks received
    1,439
    Rep Power
    2924
    c.getPA().walkTo(-1, 0);
    or
    c.getPA().walkTo(1, 0);

    EDIT: just realised what u want... you need to do a check abs, so if they are at / near the KBD gate, it does a diffrent walk to anything else.
    "Know thy self, know thy enemy. A thousand battles, a thousand victories." - Sun Tzu
    GitHub: https://github.com/Faris-Mckay
    Reply With Quote  
     

  3. #3  
    Registered Member
    Trock's Avatar
    Join Date
    Jul 2009
    Age
    28
    Posts
    1,915
    Thanks given
    14
    Thanks received
    66
    Rep Power
    532
    Yeah, I that second one worked fine... But when I'm on the other side of the gate it doesn't work
    Quote Originally Posted by Psyduck View Post
    Vouch

    Quote Originally Posted by VelSion View Post
    Huge Vouch, made so many deals with him, went smoothly!
    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. [PI]Gates
    By Lechuur in forum Help
    Replies: 8
    Last Post: 05-26-2011, 11:41 PM
  2. Replies: 7
    Last Post: 05-07-2011, 08:51 AM
  3. [PI] Gates Remove
    By Hybrid in forum Help
    Replies: 2
    Last Post: 12-26-2010, 06:58 PM
  4. How to change gates?
    By ledgman in forum Help
    Replies: 1
    Last Post: 06-07-2009, 03:00 AM
  5. Gates of Survival
    By aznsoldier6 in forum PC
    Replies: 0
    Last Post: 05-06-2008, 05:52 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
  •