Thread: npc moving

Results 1 to 5 of 5
  1. #1 npc moving 
    Registered Member
    Join Date
    Jan 2015
    Posts
    58
    Thanks given
    1
    Thanks received
    2
    Rep Power
    11
    how would I make it so an npc doesn't move even if its attacking something matrix 718
    Reply With Quote  
     

  2. #2  
    Web & Graphic Designer
    Daboli's Avatar
    Join Date
    May 2011
    Age
    26
    Posts
    44
    Thanks given
    0
    Thanks received
    3
    Rep Power
    26
    Let me google that for you this might help
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jan 2015
    Posts
    58
    Thanks given
    1
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by Daboli View Post
    Didn't help no
    Reply With Quote  
     

  4. #4  
    *breaks walking*

    Cody_'s Avatar
    Join Date
    Dec 2010
    Posts
    732
    Thanks given
    219
    Thanks received
    203
    Rep Power
    286
    Quote Originally Posted by Daboli View Post
    I'll bet you think you're being funny. But really you're just showing everyone you have no idea either.

    Code:
    npc.setCantFollowUnderCombat(true);
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Nov 2014
    Posts
    147
    Thanks given
    15
    Thanks received
    3
    Rep Power
    6
    Quote Originally Posted by QualityGamerz View Post
    how would I make it so an npc doesn't move even if its attacking something matrix 718
    In your src folder, search for NPC.java.

    In there search for the following line:

    Code:
    int[] nonWalkableNpcs = {
    You should see several NPC id's under there, just add the NPC you wish to stay in it's place, and compile.

    Let me know if this worked.
    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. 525 npc moving 525
    By Trace in forum Tutorials
    Replies: 14
    Last Post: 04-07-2012, 07:46 AM
  2. [CONF]How to make Npcs Move[CONF]
    By Samsterz in forum Configuration
    Replies: 16
    Last Post: 02-07-2010, 09:59 PM
  3. making NPCS move
    By T-Sex in forum Tutorials
    Replies: 15
    Last Post: 06-27-2008, 05:02 AM
  4. Making Npcs Move [EASY WAY]
    By Coma Black in forum Tutorials
    Replies: 10
    Last Post: 02-22-2008, 02:09 AM
  5. Making an npc move
    By delta11 in forum Tutorials
    Replies: 5
    Last Post: 10-20-2007, 09:43 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
  •