Thread: PI how do i make a npc don't move

Results 1 to 9 of 9
  1. #1 PI how do i make a npc don't move 
    Registered Member
    Join Date
    Jan 2014
    Posts
    138
    Thanks given
    19
    Thanks received
    4
    Rep Power
    13
    i added the sea troll queen but she gets out of the water when you attack her and move :x any idea how to make her stay there will thank ofc
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Oct 2013
    Age
    25
    Posts
    685
    Thanks given
    15
    Thanks received
    68
    Rep Power
    0
    Quote Originally Posted by loruviam View Post
    i added the sea troll queen but she gets out of the water when you attack her and move :x any idea how to make her stay there will thank ofc
    Do a boolean check for npc movement.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jan 2014
    Posts
    138
    Thanks given
    19
    Thanks received
    4
    Rep Power
    13
    Quote Originally Posted by Dri Comics View Post
    Do a boolean check for npc movement.
    wish I could do that
    Reply With Quote  
     

  4. #4  
    Bossman

    ISAI's Avatar
    Join Date
    Sep 2012
    Posts
    1,916
    Thanks given
    655
    Thanks received
    1,366
    Rep Power
    5000
    Quote Originally Posted by loruviam View Post
    wish I could do that
    A boolean can be true or false (1 or 0) Make it so NPC Movement is false or 0 or off.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jan 2014
    Posts
    138
    Thanks given
    19
    Thanks received
    4
    Rep Power
    13
    Quote Originally Posted by ISAIHasmanboobs View Post
    A boolean can be true or false (1 or 0) Make it so NPC Movement is false or 0 or off.
    I know that, but it's how to make it :x
    Reply With Quote  
     

  6. #6  
    Bossman

    ISAI's Avatar
    Join Date
    Sep 2012
    Posts
    1,916
    Thanks given
    655
    Thanks received
    1,366
    Rep Power
    5000
    Quote Originally Posted by loruviam View Post
    I know that, but it's how to make it :x
    Theres a little thing called google
    Reply With Quote  
     

  7. #7  
    Banned
    Join Date
    Oct 2013
    Age
    25
    Posts
    685
    Thanks given
    15
    Thanks received
    68
    Rep Power
    0
    if (canmove) {
    //code here
    } else {
    //code for npc not mocing
    }
    Reply With Quote  
     

  8. #8  
    oof


    Join Date
    Aug 2012
    Posts
    3,150
    Thanks given
    2,847
    Thanks received
    857
    Rep Power
    2260
    You guys are giving him the logic but not showing him how to add it which is what he's asking for...

    Haven't touched any PI in a while but I believe there's a method in NPCHandler called getFollowDistance or followDistance

    There you can add

    Code:
    case npcid:
    return 0;
    Shouldn't follow you now.
    Reply With Quote  
     

  9. Thankful user:


  10. #9  
    Registered Member
    Join Date
    Jan 2014
    Posts
    138
    Thanks given
    19
    Thanks received
    4
    Rep Power
    13
    Quote Originally Posted by psyLogic View Post
    You guys are giving him the logic but not showing him how to add it which is what he's asking for...

    Haven't touched any PI in a while but I believe there's a method in NPCHandler called getFollowDistance or followDistance

    There you can add

    Code:
    case npcid:
    return 0;
    Shouldn't follow you now.
    Finally, thank you very much for help, it works
    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. Replies: 10
    Last Post: 08-25-2012, 04:01 PM
  2. Replies: 6
    Last Post: 03-19-2012, 03:10 AM
  3. Replies: 3
    Last Post: 08-05-2011, 11:04 PM
  4. Replies: 4
    Last Post: 07-22-2010, 02:51 AM
  5. How do i make new npc's?
    By snower5 in forum Tutorials
    Replies: 4
    Last Post: 11-20-2007, 03:47 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •