mr.bonent 
			Junior Member0  
	
		
			
Sound at  Entity  
 
				Hey guys!
I want to play a Sound on a Entity when the Player enters an area.
It doesn't work yet. Here my script. 
Thanks for help.[/quote]
Quote: void OnStart()
Attached Files error_.jpg  (Size: 6.96 KB / Downloads: 212)
 
			
			
				
(This post was last modified: 07-31-2011, 11:03 PM by mr.bonent .) 
 
				
			 
		 
 
 
	07-31-2011, 11:02 PM  
		
	 
 
	
		MrCookieh 
			Member0  
	
		
			
RE: Sound at  Entity  
 
				void DoorSchrei(string &in asParent, string &in asChild, int alState)
; 
remove the semicolon 
 
 
 
	07-31-2011, 11:16 PM  
		
	 
 
	
		mr.bonent 
			Junior Member0  
	
		
			
RE: Sound at  Entity  
 
				Ok thanks, the error message does not appear anymore.
			
			
			
		 
 
 
	07-31-2011, 11:36 PM  
		
	 
 
	
		Janni1234 
			Member1  
	
		
			
RE: Sound at  Entity  
 
				PlaySoundAtEntity("Schrei", "05_event_door_bang.snt", "mansion_6", 2.0f, false);
			
			
			
		 
 
 
	07-31-2011, 11:37 PM  
		
	 
 
	
		Angerpull 
			Member0  
	
		
			
RE: Sound at  Entity  
 
				When you're playing a sound at an Entity, do not use the SNT at the end. Just use it's name.
			
			
			
			
		 
 
 
	07-31-2011, 11:53 PM  
		
	 
 
	
		MrCookieh 
			Member0  
	
		
			
RE: Sound at  Entity  
 
				and you can put these
			
			
 
 
 
	08-01-2011, 12:06 AM  
		
	 
 
	
		Kyle 
			Posting Freak7  
	
		
			
RE: Sound at  Entity  
 
				Guys, why not we just play the sound at the entity the 
NORMAL  way, no extra modifications that are needed. -_-
The reason why the sound doesn't work is because you're starting it up and then it gets canceled.
Do this:
void OnStart()
It's useless to call the different functions with the same parent and child at the same time.
I was also wondering what's the point for playing a sound and then have it be stopped? The sound isn't a repeating one.
			
				
(This post was last modified: 08-01-2011, 12:18 AM by Kyle .) 
 
				
			 
		 
 
 
	08-01-2011, 12:10 AM  
		
	 
 
	
		mr.bonent 
			Junior Member0  
	
		
			
RE: Sound at  Entity  
 
				Thank you very much guys! Kyle your script works perfect. 
Greets!
			
 
 
 
	08-01-2011, 04:45 PM  
		
	 
 
	
		Kyle 
			Posting Freak7  
	
		
			
RE: Sound at  Entity  
 
				 (08-01-2011, 04:45 PM) mr.bonent Wrote:  
No problem, I try my hardest. 
 
			
			
 
 
 
	08-01-2011, 04:55 PM