| 
		
	
		| lordmestari   Junior Member
 
 Posts: 22
 Threads: 8
 Joined: Apr 2011
 Reputation: 
0
 | 
			| Disabling a spotlight 
 
				I have a red spotlight in a room. I want it to be active when I enter a script area. I unchecked the "active" box in the level editor, although in game it is still visible. How do you disable a spotlight? And yes, I have deleted the cache files, if it has anything to do with this problem.
 
				
(This post was last modified: 10-01-2011, 12:10 PM by lordmestari.)
 |  |  
	| 10-01-2011, 12:07 PM |  |  
	
		| HumiliatioN   Posting Freak
 
 Posts: 1,179
 Threads: 64
 Joined: Dec 2010
 Reputation: 
18
 | 
			| RE: Disabling a spotlight 
 
				Simple. Example this: SetLightVisible("SpotLight_3", false); "OnStart" section this and when you enter the area:SetLightVisible("SpotLight_3", true)
 
 
 
 “Life is a game, play it” 
				
(This post was last modified: 10-01-2011, 12:20 PM by HumiliatioN.)
 |  |  
	| 10-01-2011, 12:19 PM |  |  
	
		| MrBigzy   Senior Member
 
 Posts: 616
 Threads: 18
 Joined: Mar 2011
 Reputation: 
8
 | 
			| RE: Disabling a spotlight 
 
				For some reason, deactivating lights through the level editor won't work, at least that's what I've found.
 |  |  
	| 10-01-2011, 03:41 PM |  |  
	
		| lordmestari   Junior Member
 
 Posts: 22
 Threads: 8
 Joined: Apr 2011
 Reputation: 
0
 | 
			| RE: Disabling a spotlight 
 
				 (10-01-2011, 12:19 PM)HumiliatioN Wrote:  Simple. Example this: SetLightVisible("SpotLight_3", false); "OnStart" section this and when you enter the area:SetLightVisible("SpotLight_3", true)
 That did the trick, thank you a lot! 
			 |  |  
	| 10-02-2011, 01:35 AM |  |  
	
		| UnseenLegend ( NL )   Member
 
 Posts: 171
 Threads: 10
 Joined: Sep 2011
 Reputation: 
12
 | 
			| RE: Disabling a spotlight 
 
				 (10-02-2011, 01:35 AM)lordmestari Wrote:   (10-01-2011, 12:19 PM)HumiliatioN Wrote:  Simple. Example this: SetLightVisible("SpotLight_3", false); "OnStart" section this and when you enter the area:That did the trick, thank you a lot!SetLightVisible("SpotLight_3", true)
 did work on box light and others to
			 
 |  |  
	| 10-02-2011, 01:32 PM |  |  
	
		| HumiliatioN   Posting Freak
 
 Posts: 1,179
 Threads: 64
 Joined: Dec 2010
 Reputation: 
18
 | 
			| RE: Disabling a spotlight 
 
				 (10-02-2011, 01:32 PM)UnseenLegend ( NL ) Wrote:   (10-02-2011, 01:35 AM)lordmestari Wrote:  did work on box light and others to (10-01-2011, 12:19 PM)HumiliatioN Wrote:  Simple. Example this: SetLightVisible("SpotLight_3", false); "OnStart" section this and when you enter the area:That did the trick, thank you a lot!SetLightVisible("SpotLight_3", true)
 
 Never tried, I guess not.
 
 “Life is a game, play it” |  |  
	| 10-02-2011, 03:10 PM |  |  |