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


Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripts For Deactivating Point Lights?
FurtherGames Offline
Member

Posts: 72
Threads: 23
Joined: Apr 2013
Reputation: 1
#1
Wink  Scripts For Deactivating Point Lights?

I have a script where you walk over to a candle and it blows the candle out. The candles in the room are not bright enough, is there a way I can turn off point lights as well as the candle as the same time?[/b]
(This post was last modified: 05-04-2013, 02:44 PM by FurtherGames.)
05-04-2013, 01:47 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Scripts For Deactivating Point Lights?

You CANNOT turn off pointlights nor any lights. How you do this is to set he light's colour to black and connect it to the light.
In the Light's properties menu in the LevelEditor, there should be a word saying "ConnectedLight". Input the name of the light in there.

"Veni, vidi, vici."
"I came, I saw, I conquered."
05-04-2013, 01:55 PM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#3
RE: Scripts For Deactivating Point Lights?

(05-04-2013, 01:55 PM)JustAnotherPlayer Wrote: You CANNOT turn off pointlights nor any lights. How you do this is to set he light's colour to black and connect it to the light.

I beg to differ...

PHP Code: (Select All)
SetLightVisible("<pointlight>"false); 

Put that in your CollideCallback which has your ScriptArea in it.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
05-04-2013, 01:59 PM
Find




Users browsing this thread: 1 Guest(s)