Dominic0904 
 
 
		
			Member 
			
			
			
 
			
	Posts: 63 
	Threads: 14 
	Joined: Apr 2011
	
 Reputation: 
0
		
	 | 
	
		
			
Sounds not becoming "de-active" 
			 
			
				Basically I want to disable the sounds so I can set them to "active" when I script the events ((player walks into a script area, sound is triggered)).  
 
But everytime I uncheck the "active" box and reload the map, the sound still plays. I have tried this with three different sounds and still the same result.  
 
Is this something I need to do in the script itself? Cause I haven't started it yet, I just want to put down all the sounds before I script them. 
 
Thank you.
			 
			
			
			
		 |  
	 
 | 
 
	| 05-07-2011, 05:51 PM  | 
	
		
	 | 
 
 
	
		
		Khyrpa 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 638 
	Threads: 10 
	Joined: Apr 2011
	
 Reputation: 
24
		
	 | 
	
		
			
RE: Sounds not becoming "de-active" 
			 
			
				you have to use: StopSound(string& asSoundName, float afFadeTime); 
then use this to Play it: FadeInSound(string& asSoundName, float afFadeTime, bool abPlayStart);
			 
			
			
			
				
(This post was last modified: 05-07-2011, 06:35 PM by Khyrpa.)
 
				
			 
		 |  
	 
 | 
 
	| 05-07-2011, 06:35 PM  | 
	
		
	 | 
 
 
	
		
		Dominic0904 
 
 
		
			Member 
			
			
			
 
			
	Posts: 63 
	Threads: 14 
	Joined: Apr 2011
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Sounds not becoming "de-active" 
			 
			
				 (05-07-2011, 06:35 PM)Khyrpa Wrote:  you have to use: StopSound(string& asSoundName, float afFadeTime); 
then use this to Play it: FadeInSound(string& asSoundName, float afFadeTime, bool abPlayStart); 
Just to confirm, say i wanted to stop "guardian_scream1"
 
I would write it as: 
 StopSound(string& asguardian_scream1, float afFadeTime);
 
right? or am I doing that wrong?
			  
			
			
			
		 |  
	 
 | 
 
	| 05-07-2011, 06:45 PM  | 
	
		
	 | 
 
 
	
		
		Roenlond 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 331 
	Threads: 3 
	Joined: Apr 2011
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Sounds not becoming "de-active" 
			 
			
				 (05-07-2011, 06:45 PM)Dominic0904 Wrote:   (05-07-2011, 06:35 PM)Khyrpa Wrote:  you have to use: StopSound(string& asSoundName, float afFadeTime); 
then use this to Play it: FadeInSound(string& asSoundName, float afFadeTime, bool abPlayStart);  
Just to confirm, say i wanted to stop "guardian_scream1" 
 
I would write it as: 
 StopSound(string& asguardian_scream1, float afFadeTime); 
 
right? or am I doing that wrong? 
strings need to be in quotes, and a float is a number with a decimal   
StopSound("guardian_scream1", 2.0f);
			  
			
			
			
				
(This post was last modified: 05-07-2011, 06:53 PM by Roenlond.)
 
				
			 
		 |  
	 
 | 
 
	| 05-07-2011, 06:52 PM  | 
	
		
	 | 
 
 
	
		
		Dominic0904 
 
 
		
			Member 
			
			
			
 
			
	Posts: 63 
	Threads: 14 
	Joined: Apr 2011
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Sounds not becoming "de-active" 
			 
			
				 (05-07-2011, 06:52 PM)Roenlond Wrote:   (05-07-2011, 06:45 PM)Dominic0904 Wrote:   (05-07-2011, 06:35 PM)Khyrpa Wrote:  you have to use: StopSound(string& asSoundName, float afFadeTime); 
then use this to Play it: FadeInSound(string& asSoundName, float afFadeTime, bool abPlayStart);  
Just to confirm, say i wanted to stop "guardian_scream1" 
 
I would write it as: 
 StopSound(string& asguardian_scream1, float afFadeTime); 
 
right? or am I doing that wrong?  
strings need to be in quotes, and a float is a number with a decimal   
StopSound("guardian_scream1", 2.0f); 
Aha I knew the quotes thing, but since I am still quite new to this scripting business, I just wanted to confirm. I always learn better through simple examples or a YouTube video, I find it hard to learn from books and such. I am a "visual learner" as they call it   
Thanks though!
			  
			
			
			
		 |  
	 
 | 
 
	| 05-07-2011, 07:04 PM  | 
	
		
	 | 
 
 
	 
 |