Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disabling a spotlight
lordmestari Offline
Junior Member

Posts: 22
Threads: 8
Joined: Apr 2011
Reputation: 0
#1
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
Find
HumiliatioN Offline
Posting Freak

Posts: 1,179
Threads: 64
Joined: Dec 2010
Reputation: 18
#2
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
Find
MrBigzy Offline
Senior Member

Posts: 616
Threads: 18
Joined: Mar 2011
Reputation: 8
#3
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
Find
lordmestari Offline
Junior Member

Posts: 22
Threads: 8
Joined: Apr 2011
Reputation: 0
#4
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
Find
UnseenLegend ( NL ) Offline
Member

Posts: 171
Threads: 10
Joined: Sep 2011
Reputation: 12
#5
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:
SetLightVisible("SpotLight_3", true)
That did the trick, thank you a lot!
did work on box light and others to


[Image: read-image.asp?n=n-20121202110321-m.jpg&r=8]
10-02-2011, 01:32 PM
Find
HumiliatioN Offline
Posting Freak

Posts: 1,179
Threads: 64
Joined: Dec 2010
Reputation: 18
#6
RE: Disabling a spotlight

(10-02-2011, 01:32 PM)UnseenLegend ( NL ) Wrote:
(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:
SetLightVisible("SpotLight_3", true)
That did the trick, thank you a lot!
did work on box light and others to

Never tried, I guess not.


“Life is a game, play it”
10-02-2011, 03:10 PM
Find




Users browsing this thread: 1 Guest(s)