LocalParty 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 34 
	Threads: 10 
	Joined: Jan 2012
	
 Reputation: 
0
		
	 | 
	
		
			
Music problem... 
			 
			
				Okey... 
So when i enter an area i want music to start playing the player to look back and then after like 6 - 10 secound (dont know when the drop in the song are) then i want the player to see a monster punching the closed door and music still playing and full controll over player... Can somebody give me a script example?   
			 
			
			
			
		 |  
	 
 | 
 
	| 01-17-2012, 07:23 PM  | 
	
		
	 | 
 
 
	
		
		Juby 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 290 
	Threads: 2 
	Joined: May 2011
	
 Reputation: 
5
		
	 | 
	
		
			
RE: Music problem... 
			 
			
				An example? Sure. 
 
 
void OnStart() { 
AddEntityCollideCallback("Player", "CollisionArea", "MusicPunch", true, 1);  
} 
 
void MusicPunch(string &in asParent, string &in asChild, int alState)	{  
PlayMusic("MUSIC.ogg", false, .8f, 2, 2, false);  
AddTimer("", 6, "PunchyLook"); 
StartPlayerLookAt("AREATOLOOKAT", 1, 1, "");  
} 
 
void PunchyLook(string &in asTimer)	{  
//Add Patrol Nodes For Baddie Here 
SetEntityActive("MONSTERMAN", true);	 
StopPlayerLookAt();	 
}  
 
 
Note- didn't test this yet so they may or may not be typos.
			 
			
			
 
Insanity. Static. 
			
		 |  
	 
 | 
 
	| 01-17-2012, 08:25 PM  | 
	
		
	 | 
 
 
	
		
		LocalParty 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 34 
	Threads: 10 
	Joined: Jan 2012
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Music problem... 
			 
			
				Gonna try! Tnx!!!    + rep to you!   )
			  
			
			
			
		 |  
	 
 | 
 
	| 01-17-2012, 08:28 PM  | 
	
		
	 | 
 
 
	
		
		ZyLogicX 
 
 
		
			Member 
			
			
			
 
			
	Posts: 245 
	Threads: 24 
	Joined: May 2011
	
 Reputation: 
6
		
	 | 
	
		
			
RE: Music problem... 
			 
			
				Please change this forum to solved... so that people that wanted to help you in the first place dont have to waste there time... like I just did...   
			 
			
			
 
			
		 |  
	 
 | 
 
	| 01-17-2012, 08:50 PM  | 
	
		
	 | 
 
 
	
		
		LocalParty 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 34 
	Threads: 10 
	Joined: Jan 2012
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Music problem... 
			 
			
				 (01-17-2012, 08:50 PM)ZyLogicX Wrote:  Please change this forum to solved... so that people that wanted to help you in the first place dont have to waste there time... like I just did...   Its not reeeealy solved... I need the monster music to stop for just this one! xD 
			  
			
			
			
		 |  
	 
 | 
 
	| 01-17-2012, 09:20 PM  | 
	
		
	 | 
 
 
	
		
		SilentStriker 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 950 
	Threads: 26 
	Joined: Jul 2011
	
 Reputation: 
43
		
	 | 
	
		
			
RE: Music problem... 
			 
			
				 (01-17-2012, 09:20 PM)LocalParty Wrote:   (01-17-2012, 08:50 PM)ZyLogicX Wrote:  Please change this forum to solved... so that people that wanted to help you in the first place dont have to waste there time... like I just did...   Its not reeeealy solved... I need the monster music to stop for just this one! xD When do you want the music to stop?
 
When the monster hits the door or later on?   
either way you use the StopMusic(); script
			  
			
			
 
			
				
(This post was last modified: 01-17-2012, 09:49 PM by SilentStriker.)
 
				
			 
		 |  
	 
 | 
 
	| 01-17-2012, 09:48 PM  | 
	
		
	 | 
 
 
	
		
		LocalParty 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 34 
	Threads: 10 
	Joined: Jan 2012
	
 Reputation: 
0
		
	 | 
	
		
 | 
 
	| 01-17-2012, 10:00 PM  | 
	
		
	 | 
 
 
	
		
		Statyk 
 
 
		
			Schrödinger's Mod 
			
			
			
 
			
	Posts: 4,390 
	Threads: 72 
	Joined: Sep 2011
	
 Reputation: 
241
		
	 | 
	
		
			
RE: Music problem... 
			 
			
				It is the loud "REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE" noise when he is going after the player that you want to stop ? Or is the monster music still playing?
			 
			
			
			
				
(This post was last modified: 01-17-2012, 10:03 PM by Statyk.)
 
				
			 
		 |  
	 
 | 
 
	| 01-17-2012, 10:03 PM  | 
	
		
	 | 
 
 
	 
 |