Viperdream 
			Member0  
	
		
			
Monsters don't despawn and patrol instead 
 
				I have a little problem regarding the monsters.
Whenever they get activated by my collides, they follow their path nodes and when they arrive at the last one. They just go back to the first one.
First it was only with the 2nd encounter monster and after that also with the 1st encounter monster while I didn't change anything with the script of it.
I tried them to deactivate with timers, which works. But then they don't destroy the doors they are supposed to destroy.
Here's the script (Beware, it's long. I didn't know what could possibly cause the problem so I just copied the whole script)
Thanks
Spoiler below!  
 
 
			
				
(This post was last modified: 03-08-2011, 09:47 PM by Viperdream .) 
 
				
			 
		 
 
 
	03-08-2011, 09:46 PM  
		
	 
 
	
		Linus Ågren 
			Senior Member5  
	
		
			
RE: Monsters don't despawn and patrol instead 
 
				Most likely cause is that you are too close to the monster to dissapear. Create a collidebox where the last node is and make so that the monster is set inactive when he collides with it.
			
			
			
Creator of The Dark Treasure.
			
		 
 
 
	03-08-2011, 10:01 PM  
		
	 
 
	
		Viperdream 
			Member0  
	
		
			
RE: Monsters don't despawn and patrol instead 
 
				I'll try that and see what happens
			
			
			
			
		 
 
 
	03-08-2011, 10:30 PM  
		
	 
 
	
		gandalf91 
			Senior Member0  
	
		
			
RE: Monsters don't despawn and patrol instead 
 
				Yeah, junkfood is probably right. I've noticed this a lot in my map I've been testing though I'm okay with it. How close are you to the monster when it is supposed to despawn. It seems that if I am with 20 meters or so OR I can see it it won't go away.
			
			
			
			
		 
 
 
	03-08-2011, 11:39 PM  
		
	 
 
	
		Viperdream 
			Member0  
	
		
			
RE: Monsters don't despawn and patrol instead 
 
				The areas don't work. I'll just use timers then
			
			
			
			
		 
 
 
	03-09-2011, 02:04 PM  
		
	 
 
	
		Pandemoneus 
			Senior Member0  
	
		
			
RE: Monsters don't despawn and patrol instead 
 
				Use areas and then CollideEntity using the area and the monster.
			
			
				
(This post was last modified: 03-09-2011, 03:12 PM by Pandemoneus .) 
 
				
			 
		 
 
 
	03-09-2011, 03:12 PM  
		
	 
 
	
		Viperdream 
			Member0  
	
		
			
RE: Monsters don't despawn and patrol instead 
 
				 (03-09-2011, 03:12 PM) Pandemoneus Wrote:  
I did that, still doesn't work
			
 
			
			
			
		 
 
 
	03-09-2011, 04:32 PM