| Mudbill   Muderator
 
 Posts: 3,881
 Threads: 59
 Joined: Apr 2013
 Reputation: 
179
 | 
			| RE: Repeat a Script Function? 
 
				If you want the player to fall down and teleport, you need to script the whole sequence. 
 Start with making the player fall. You can tilt the camera with FadePlayerRollTo and move the camera down if you need to, using FadePlayerHeadPos. Use a timer to have these be more smooth and timed. Add a FadeOut script to make the screen black before you teleport them. If you have 1 second in the FadeOut script, add another timer with 1 second, or perhaps 2 if you wish. In that callback, teleport the player using TeleportPlayer with the name of the player start area. Oh, and don't forget to FadeIn again.
 
 That's basically it. I'd give you an example, but this is fairly straight forward, so I hope you can manage it. It just takes some testing and adjusting to get right. Remember timers; they're good.
 
 
				
(This post was last modified: 08-22-2014, 08:56 PM by Mudbill.)
 |  | 
	| 08-22-2014, 08:55 PM |  | 
	
		| Amnesiaplayer   Senior Member
 
 Posts: 539
 Threads: 105
 Joined: Jun 2014
 Reputation: 
0
 | 
			| RE: Repeat a Script Function? 
 
				Thanks    |  | 
	| 08-22-2014, 09:07 PM |  |