Melvin 
 
 
		
			Member 
			
			
			
 
			
	Posts: 245 
	Threads: 38 
	Joined: Jun 2012
	
 Reputation: 
5
		
	 | 
	
		
			
Teleporting from map to map PLS HELP!!! [SOLVED] 
			 
			
				I've been browsing on the internet for 5 hours, and it is starting to get frustrating... 
 
This is what I want to do: 
 
Player stands next to bed, screen fades out (theres an area next to the bed called: "PlayerSleep" 
Player wakes up in another map(!) 
 
(I have one Floor_2_day.map and one Floor_2_Night.map, I want to switch from day to night you get it?) 
 
Now this is my script I have so far (just started) 
 
 
//////////////////////////// 
// Run when first time starting map 
void OnStart() 
{ 
AddEntityCollideCallback("Player", "Music", "StartMusic", true, 1); 
} 
 
void StartMusic(string &in asParent, string &in asChild, int alState) 
{ 
PlayMusic("Beforethestorm.ogg", true, 0.4, 8, 1, true); 
} 
 
Script for the Floor_2_Night.map[b] 
 
//////////////////////////// 
// Run first time starting map 
 
void OnEnter() 
{ 
} 
 
[b]Can anyone, pls help me???[/b][/b]
			 
			
			
 
			
				
(This post was last modified: 08-07-2012, 08:02 AM by Melvin.)
 
				
			 
		 |  
	 
 | 
	| 08-06-2012, 11:40 PM  | 
	
		
	 | 
	
		
		Brothersvv09 
 
 
		
			Member 
			
			
			
 
			
	Posts: 57 
	Threads: 29 
	Joined: Aug 2012
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Teleporting from map to map PLS HELP!!! 
			 
			
				OMG! I HAVE HAVING THE SAME PROBLEM TOO! OMG THAT IS THE SAME SCRIPT I AM USING! OMGO!!!!! Same here!?!?! I want to get KNOCKED OUT but how do i teleport?!? Also..... What is the KNockout script?!!?
			 
			
			
			
		 |  
	 
 | 
	| 08-07-2012, 01:37 AM  | 
	
		
	 | 
	
		
		Melvin 
 
 
		
			Member 
			
			
			
 
			
	Posts: 245 
	Threads: 38 
	Joined: Jun 2012
	
 Reputation: 
5
		
	 | 
	
		
			
RE: Teleporting from map to map PLS HELP!!! 
			 
			
				 (08-07-2012, 01:37 AM)Brothersvv09 Wrote:  OMG! I HAVE HAVING THE SAME PROBLEM TOO! OMG THAT IS THE SAME SCRIPT I AM USING! OMGO!!!!! Same here!?!?! I want to get KNOCKED OUT but how do i teleport?!? Also..... What is the KNockout script?!!? Bro Ive been searching the WHOLE NIGHT (its night here) its freaking 4 AM now... IVE STARTED 22:00 PM... STILL I haven't got ANYTHING! But I see lots of custom stories doing it like it nothing! But how? I can't continue if this isnt fixed :S
			  
			
			
 
			
		 |  
	 
 | 
	| 08-07-2012, 02:53 AM  | 
	
		
	 | 
	
		
		lolmaster 
 
 
		
			Member 
			
			
			
 
			
	Posts: 170 
	Threads: 9 
	Joined: Jul 2012
	
 Reputation: 
6
		
	 | 
	
		
 | 
	| 08-07-2012, 03:38 AM  | 
	
		
	 | 
	
		
		Melvin 
 
 
		
			Member 
			
			
			
 
			
	Posts: 245 
	Threads: 38 
	Joined: Jun 2012
	
 Reputation: 
5
		
	 | 
	
		
			
RE: Teleporting from map to map PLS HELP!!! 
			 
			
				 (08-07-2012, 03:38 AM)lolmaster Wrote:  http://wiki.frictionalgames.com/hpl2/amn..._functions 
 
void ChangeMap(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound);
  
The answer was literally right there. Check the dev wiki. I already have it working bro, thanks anyways for the reply   
			 
			
			
 
			
		 |  
	 
 | 
	| 08-07-2012, 08:02 AM  | 
	
		
	 |