TheMadmaxster 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 18 
	Threads: 7 
	Joined: Jan 2012
	
 Reputation: 
0
		
	 | 
	
		
			
  
Falling Player Script Help! 
			 
			
				Hi all! 
So I have finally gotten the cave-in to work... 
Now another thing comes to mind: 
I want to also make it where the player falls to the ground while the collapse happens. Anyone know the code of the falling player thing?  
One more thing, I also want to add dust particle effect thing. Thanks! 
-TheMadmaxster
			 
			
			
			
				
(This post was last modified: 10-13-2012, 03:22 AM by TheMadmaxster.)
 
				
			 
		 |  
	 
 | 
	| 10-13-2012, 03:10 AM  | 
	
		
	 | 
	
		
		Statyk 
 
 
		
			Schrödinger's Mod 
			
			
			
 
			
	Posts: 4,390 
	Threads: 72 
	Joined: Sep 2011
	
 Reputation: 
241
		
	 | 
	
		
			
RE: Falling Player Script Help! 
			 
			
				If questions are relative to a thread you already made, could you update that thread next time?
			 
			
			
			
		 |  
	 
 | 
	| 10-13-2012, 03:21 AM  | 
	
		
	 | 
	
		
		TheMadmaxster 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 18 
	Threads: 7 
	Joined: Jan 2012
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Falling Player Script Help! 
			 
			
				 (10-13-2012, 03:21 AM)Statyk Wrote:  Haha! Ya, sorry. I'm really tired; not thinking straight. 
			 
			
			
			
		 |  
	 
 | 
	| 10-13-2012, 03:24 AM  | 
	
		
	 | 
	
		
		Wapez 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 360 
	Threads: 37 
	Joined: Mar 2012
	
 Reputation: 
19
		
	 | 
	
		
			
RE: Falling Player Script Help! 
			 
			
				void faint(string &asTimer) 
{ 
PlaySoundAtEntity("", "player_bodyfall.snt", "Player", 0, false); 
SetPlayerCrouching(true); 
FadePlayerRollTo(50, 150, 150); 
} 
 
  
Simple simulation off the player falling.
			 
			
			
 
			
				
(This post was last modified: 10-13-2012, 09:45 AM by Wapez.)
 
				
			 
		 |  
	 
 | 
	| 10-13-2012, 09:43 AM  | 
	
		
	 | 
	
		
		TheMadmaxster 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 18 
	Threads: 7 
	Joined: Jan 2012
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Falling Player Script Help! 
			 
			
				Is there an onstart line?
			 
			
			
			
		 |  
	 
 | 
	| 10-13-2012, 07:05 PM  | 
	
		
	 | 
	
		
		FlawlessHappiness 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 3,980 
	Threads: 145 
	Joined: Mar 2012
	
 Reputation: 
171
		
	 | 
	
		
			
RE: Falling Player Script Help! 
			 
			
				He provided a timer-script. 
What you need to do is place the following line in where the cavein script is. 
 
AddTimer("faint", 0, "faint");
			 
			
			
 
Trying is the first step to success. 
			
		 |  
	 
 | 
	| 10-13-2012, 10:23 PM  | 
	
		
	 |