jessehmusic 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 423 
	Threads: 102 
	Joined: Dec 2011
	
 Reputation: 
8
		
	 | 
	
		
			
Light script  
			 
			
				Hey i dont understand what i done wrong here  
 
void void OnStart() 
{ 
AddEntityCollideCallback("Player", "Light_area", "Lights", true, 1); 
 
 
} 
void Lights(string &in asParent, string &in asChild, int alState) 
{ 
SetLightVisible("torch_static01_3", true); 
SetLightVisible("torch_static01_4", true); 
} 
 
i got the area named right in level editor , the Lights dosnt call :/ any clue 
			 
			
			
 
			
				
(This post was last modified: 04-09-2012, 12:19 AM by jessehmusic.)
 
				
			 
		 |  
	 
 | 
 
	| 04-08-2012, 11:05 PM  | 
	
		
	 | 
 
 
	
		
		Mackiiboy 
 
 
		
			Member 
			
			
			
 
			
	Posts: 101 
	Threads: 7 
	Joined: Jan 2012
	
 Reputation: 
11
		
	 | 
	
		
			
RE: Light script  
			 
			
				 (04-08-2012, 11:05 PM)jessehmusic Wrote:  Hey i dont understand what i done wrong here  
 
void void OnStart() 
{ 
AddEntityCollideCallback("Player", "Light_area", "Lights", true, 1); 
 
 
} 
void Lights(string &in asParent, string &in asChild, int alState) 
{ 
SetLightVisible("torch_static01_3", true); 
SetLightVisible("torch_static01_4", true); 
} 
 
i got the area named right in level editor , the Lights dosnt call :/ any clue .
I do not think that you should use lightscripts in this case, if "torch_static01_3" is a torch, it's not a light, then it's a lamp and you should use lampscripts instead. 
 
void SetLampLit(string& asName, bool abLit, bool abEffects);
 
Hope is works    
			 
			
			
			
				
(This post was last modified: 04-08-2012, 11:56 PM by Mackiiboy.)
 
				
			 
		 |  
	 
 | 
 
	| 04-08-2012, 11:55 PM  | 
	
		
	 | 
 
 
	
		
		jessehmusic 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 423 
	Threads: 102 
	Joined: Dec 2011
	
 Reputation: 
8
		
	 | 
	
		
			
RE: Light script  
			 
			
				 (04-08-2012, 11:55 PM)Mackiiboy Wrote:   (04-08-2012, 11:05 PM)jessehmusic Wrote:  Hey i dont understand what i done wrong here  
 
void void OnStart() 
{ 
AddEntityCollideCallback("Player", "Light_area", "Lights", true, 1); 
 
 
} 
void Lights(string &in asParent, string &in asChild, int alState) 
{ 
SetLightVisible("torch_static01_3", true); 
SetLightVisible("torch_static01_4", true); 
} 
 
i got the area named right in level editor , the Lights dosnt call :/ any clue . 
I do not think that you should use lightscripts in this case, if "torch_static01_3" is a torch, it's not a light, then it's a lamp and you should use lampscripts instead.  
 
 
void SetLampLit(string& asName, bool abLit, bool abEffects); 
 
Hope is works    
 
 
 
 
 
ah ty! +rep for that! 
			 
			
			
 
			
		 |  
	 
 | 
 
	| 04-09-2012, 12:00 AM  | 
	
		
	 | 
 
 
	 
 |