| 
		
	
		| Lizard   Member
 
 Posts: 174
 Threads: 23
 Joined: Jul 2012
 Reputation: 
5
 | 
			| Sound problem 
 
				I just started a new map. where there is a leak that i got to work perfectly with ps and everything, the only thing that wont work is the sound, and i have no idea why
 //First time entering map
 ///////////////////////////
 void OnStart()
 {
 
 }
 
 //When entering map
 ////////////////////////
 void OnEnter()
 {
 PlaySoundAtEntity("WaterFlow", "12_epoxy_flow.snt", "WaterStreamArea", 0.1f, true);
 }
 
 //When Leaving map
 ///////////////////////
 void OnLeave()
 {
 
 }
 
 And yes, the entity to play the sound at is spelled correctly.
 
 CURRENT PROJECT:A Fathers Secret == Just started
 
 
				
(This post was last modified: 07-23-2013, 02:25 PM by Lizard.)
 |  |  
	| 07-23-2013, 01:25 PM |  |  
	
		| GoranGaming   Member
 
 Posts: 183
 Threads: 30
 Joined: Feb 2012
 Reputation: 
7
 | 
			| RE: Sound problem 
 
				Is the map the second map? Otherwise you have to put it in void OnStart()...
			 
 Current projects:
 The Dark Prison 85 % (Stopped working on this one)
 
 Unnamed Project 7 %
 
				
(This post was last modified: 07-23-2013, 01:29 PM by GoranGaming.)
 |  |  
	| 07-23-2013, 01:29 PM |  |  
	
		| Lizard   Member
 
 Posts: 174
 Threads: 23
 Joined: Jul 2012
 Reputation: 
5
 | 
			| RE: Sound problem 
 
				 (07-23-2013, 01:29 PM)GoranGaming Wrote:  Is the map the second map? Otherwise you have to put it in void OnStart()... 
No it is my first map
			 
 CURRENT PROJECT:A Fathers Secret == Just started
 
 |  |  
	| 07-23-2013, 01:30 PM |  |  
	
		| No Author   Posting Freak
 
 Posts: 962
 Threads: 10
 Joined: Jun 2012
 Reputation: 
13
 | 
			| RE: Sound problem 
 
				I don't know what went wrong with the script. But I'd rather put the "playsoundatentity" script in void OnStart() since it's the first map.
			 
 |  |  
	| 07-23-2013, 01:49 PM |  |  
	
		| Lizard   Member
 
 Posts: 174
 Threads: 23
 Joined: Jul 2012
 Reputation: 
5
 | 
			| RE: Sound problem 
 
				Dosen't work in OnStart eiter
			 
 CURRENT PROJECT:A Fathers Secret == Just started
 
 |  |  
	| 07-23-2013, 01:52 PM |  |  
	
		| No Author   Posting Freak
 
 Posts: 962
 Threads: 10
 Joined: Jun 2012
 Reputation: 
13
 | 
			| RE: Sound problem 
 
				Try changing the  PlaySoundAtEntity("WaterFlow", "12_epoxy_flow.snt", "WaterStreamArea", 0.1f, true); 
to 
 PlaySoundAtEntity("WaterFlow", "12_epoxy_flow.ogg", "WaterStreamArea", 0.1f, true); 
 |  |  
	| 07-23-2013, 01:55 PM |  |  
	
		| Lizard   Member
 
 Posts: 174
 Threads: 23
 Joined: Jul 2012
 Reputation: 
5
 | 
			| RE: Sound problem 
 
				 (07-23-2013, 01:55 PM)No Author Wrote:  Try changing the 
 PlaySoundAtEntity("WaterFlow", "12_epoxy_flow.snt", "WaterStreamArea", 0.1f, true); 
to
 
 PlaySoundAtEntity("WaterFlow", "12_epoxy_flow.ogg", "WaterStreamArea", 0.1f, true); 
 
already tryed that. It dosen't work eiter
			 
 CURRENT PROJECT:A Fathers Secret == Just started
 
 |  |  
	| 07-23-2013, 01:56 PM |  |  
	
		| No Author   Posting Freak
 
 Posts: 962
 Threads: 10
 Joined: Jun 2012
 Reputation: 
13
 | 
			| RE: Sound problem 
 
				PlaySoundAtEntity("WaterFlow", "12_epoxy_flow.snt", "WaterStreamArea", 0, false); 
 
 |  |  
	| 07-23-2013, 02:00 PM |  |  
	
		| Lizard   Member
 
 Posts: 174
 Threads: 23
 Joined: Jul 2012
 Reputation: 
5
 | 
			| RE: Sound problem 
 
				 (07-23-2013, 02:00 PM)No Author Wrote:  PlaySoundAtEntity("WaterFlow", "12_epoxy_flow.snt", "WaterStreamArea", 0, false); 
 
Thats already tryed that as well.
 
Almost tryed every thing with the callback/command it self
			 
 CURRENT PROJECT:A Fathers Secret == Just started
 
 
				
(This post was last modified: 07-23-2013, 02:03 PM by Lizard.)
 |  |  
	| 07-23-2013, 02:03 PM |  |  
	
		| GoranGaming   Member
 
 Posts: 183
 Threads: 30
 Joined: Feb 2012
 Reputation: 
7
 | 
			| RE: Sound problem 
 
				I used this line in one of my custom stories, it worked:
 PlaySoundAtEntity("Water1", "12_epoxy_flow", "ParticleArea1", 0, true);
 
 So try to remove the .snt extension
 
 Current projects:
 The Dark Prison 85 % (Stopped working on this one)
 
 Unnamed Project 7 %
 
				
(This post was last modified: 07-23-2013, 02:07 PM by GoranGaming.)
 |  |  
	| 07-23-2013, 02:07 PM |  |  |