Thread: Elvarg npcs don't move after respawning

Results 1 to 3 of 3
  1. #1 Elvarg npcs don't move after respawning 
    Registered Member Dragon Boots's Avatar
    Join Date
    Aug 2013
    Posts
    78
    Thanks given
    24
    Thanks received
    2
    Rep Power
    6
    Ok so the title should be clear about what the issue is.

    When the NPC respawns it clones the object but for some reason the random walking doesn't come with it. Anyone know how to fix this?
    Reply With Quote  
     

  2. #2  
    Extreme Donator


    Join Date
    Oct 2010
    Posts
    2,853
    Thanks given
    1,213
    Thanks received
    1,622
    Rep Power
    5000
    Something like this would work:
    Code:
    	@Override
    	public NPC clone() {
    		NPC npc = new NPC(getId(), getSpawnPosition());
    		npc.getMovementCoordinator().setRadius(getMovementCoordinator().getRadius());
    		npc.setFace(getFace());
    		return npc;
    	}
    Although it looks horrible. I'd just set the facing/walk radius in the npc respawn task.
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member Dragon Boots's Avatar
    Join Date
    Aug 2013
    Posts
    78
    Thanks given
    24
    Thanks received
    2
    Rep Power
    6
    Quote Originally Posted by Professor Oak View Post
    Something like this would work:
    Code:
    	@Override
    	public NPC clone() {
    		NPC npc = new NPC(getId(), getSpawnPosition());
    		npc.getMovementCoordinator().setRadius(getMovementCoordinator().getRadius());
    		npc.setFace(getFace());
    		return npc;
    	}
    Although it looks horrible. I'd just set the facing/walk radius in the npc respawn task.
    Thank you this solution 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. PI how do i make a npc don't move
    By loruviam in forum Help
    Replies: 8
    Last Post: 03-06-2014, 05:45 AM
  2. npc don't move??
    By kojomba in forum Help
    Replies: 4
    Last Post: 11-08-2009, 01:00 PM
  3. NPC's Not Moving
    By Rich Dude99 in forum Help
    Replies: 3
    Last Post: 08-12-2009, 06:18 AM
  4. NPCS don't noclip (Cheap hax!)
    By Concious in forum Show-off
    Replies: 6
    Last Post: 02-27-2009, 04:45 PM
  5. Getting NPC's to move?
    By Deadly Uzi in forum Help
    Replies: 2
    Last Post: 01-27-2009, 12:08 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
  •