ProyectV 
			Junior Member0  
	
		
			
WHAT IS WRONG?!!!!!!!!!!!!! 
 
				Okay, my problem: the map dosen't change the level. My script:
Spoiler below!  
void OnStart()void Again(float eSpeed1) 
 
 
			
				
(This post was last modified: 06-06-2014, 02:32 AM by ProyectV .) 
 
				
			 
		 
 
 
	06-06-2014, 02:31 AM  
		
	 
 
	
		Daemian 
			Posting Freak49  
	
		
			
RE: WHAT IS WRONG?!!!!!!!!!!!!! 
 
				Add a debug message to see if the function is working.
			
			
			
 
 
 
	06-06-2014, 03:59 AM  
		
	 
 
	
		Romulator 
			Not Tech Support ;-)195  
	
		
			
RE: WHAT IS WRONG?!!!!!!!!!!!!! 
 
				You seem to have two Again  voids. Change one of them and adjust your code to reflect that.
			
			
Discord: Romulator#0001 
 
 
 
	06-06-2014, 07:15 AM  
		
	 
 
	
		PutraenusAlivius 
			Posting Freak119  
	
		
			
RE: WHAT IS WRONG?!!!!!!!!!!!!! 
 
				 (06-06-2014, 07:15 AM) Romulator Wrote:  
You could just define what eSpeed1 is in the 
OnStart  OnEnter, or just you know, use regular syntax.
			
 
			
			
"Veni, vidi, vici.""I came, I saw, I conquered." 
			
		 
 
 
	06-06-2014, 08:41 AM  
		
	 
 
	
		Mudbill 
			Muderator179  
	
		
			
RE: WHAT IS WRONG?!!!!!!!!!!!!! 
 
				If I read it correctly, this is what happens:
			
			
				
(This post was last modified: 06-06-2014, 01:12 PM by Mudbill .) 
 
				
			 
		 
 
 
	06-06-2014, 01:11 PM  
		
	 
 
	
		ProyectV 
			Junior Member0  
	
		
			
RE: WHAT IS WRONG?!!!!!!!!!!!!! 
 
				 (06-06-2014, 01:11 PM) Mudbill Wrote:   What i'm trying to do is, if you die on the game you'll have to start over from the begining like an infinte loop that will break if you survive
			
 
			
			
			
				
(This post was last modified: 06-07-2014, 02:08 AM by ProyectV .) 
 
				
			 
		 
 
 
	06-07-2014, 02:07 AM  
		
	 
 
	
		PutraenusAlivius 
			Posting Freak119  
	
		
			
RE: WHAT IS WRONG?!!!!!!!!!!!!! 
 
				void OnStart () Again ( 0.0f ); void Again ( float eSpeed1 ) GetPlayerHealth () >  0 ) AddTimer ( "" ,  eSpeed1 ,  "ChangeLevel" ); GivePlayerDamage ( 110 ,  "Claws" ,  true ,  true ); StartScreenShake ( 0.01f ,  0.5f ,  0.5f ,  1.0f ); PlayGuiSound ( "attack_claw.snt" ,  0.7f ); SetGlobalVarInt ( "DejaVu" ,  1 ); void ChangeLevel ( string  & in asTimer ) ChangeMap ( "Cuartos Esclavos.map" ,  "PlayerStartArea_1" ,  "22_end.snt" ,  "" ); void Again ( string  & in asName ) GetGlobalVarInt ( "DejaVu" )==  1 ) SetMessage ( "" ,  "" ,  0.0f ); 
I think the engine is confused which one to call. Also what is eSpeed1?
			
 
			
			
"Veni, vidi, vici.""I came, I saw, I conquered." 
			
		 
 
 
	06-07-2014, 03:04 AM  
		
	 
 
	
		ProyectV 
			Junior Member0  
	
		
			
RE: WHAT IS WRONG?!!!!!!!!!!!!! 
 
				 (06-07-2014, 03:04 AM) SomethingRidiculous Wrote:  void OnStart () Again ( 0.0f ); void Again ( float eSpeed1 ) GetPlayerHealth () >  0 ) AddTimer ( "" ,  eSpeed1 ,  "ChangeLevel" ); GivePlayerDamage ( 110 ,  "Claws" ,  true ,  true ); StartScreenShake ( 0.01f ,  0.5f ,  0.5f ,  1.0f ); PlayGuiSound ( "attack_claw.snt" ,  0.7f ); SetGlobalVarInt ( "DejaVu" ,  1 ); 
0.0f = eSpeed1
again(0.0f);
void again(float eSpeed1)
			
 
			
			
			
		 
 
 
	06-07-2014, 03:30 AM  
		
	 
 
	
		PutraenusAlivius 
			Posting Freak119  
	
		
			
RE: WHAT IS WRONG?!!!!!!!!!!!!! 
 
				 (06-07-2014, 03:30 AM) ProyectV Wrote:   (06-07-2014, 03:04 AM) SomethingRidiculous Wrote:  void OnStart () Again ( 0.0f ); void Again ( float eSpeed1 ) GetPlayerHealth () >  0 ) AddTimer ( "" ,  eSpeed1 ,  "ChangeLevel" ); GivePlayerDamage ( 110 ,  "Claws" ,  true ,  true ); StartScreenShake ( 0.01f ,  0.5f ,  0.5f ,  1.0f ); PlayGuiSound ( "attack_claw.snt" ,  0.7f ); SetGlobalVarInt ( "DejaVu" ,  1 ); 
What I meant is what is eSpeed1. eSpeed1 is definitely not a default string so it's unrecognizeable.
			
 
			
			
"Veni, vidi, vici.""I came, I saw, I conquered." 
			
		 
 
 
	06-07-2014, 03:39 AM  
		
	 
 
	
		Mudbill 
			Muderator179  
	
		
			
RE: WHAT IS WRONG?!!!!!!!!!!!!! 
 
				eSpeed1 is defined as a float in the parameter of Again. The other Again that uses a string parameters does not conflict with the float one. Only constructors with the same parameters can conflict. For example, you can make OnStart("Answer") and OnStart(42) and neither of them will cause any issues for the normal OnStart() with no parameters.
@OP
So you're trying to reset the level if the player dies? I don't think OnEnter is called again when you respawn. You should use the CheckPoint script. It has a callback for when the player dies and where to respawn them.
CheckPoint  ( string &  asName ,  string &  asStartPos ,  string &  asCallback ,  string &  asDeathHintCat ,  string &  asDeathHintEntry );  
				
(This post was last modified: 06-07-2014, 12:39 PM by Mudbill .) 
 
				
			 
		 
 
 
	06-07-2014, 12:36 PM