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
Script: Activate pointlight when lit torches
gruzz Offline
Member

Posts: 76
Threads: 24
Joined: Jun 2013
Reputation: 2
#1
Script: Activate pointlight when lit torches

Hello.

I wonder if some nice man or woman can make me a, probably, simple script. It was long time since i worked with coding and the Level Editor, so i kind of need to start over :/

The script:

I have POINTLIGHTS with all the torches to make it a little lighter in the corridors, however, the torches are supposed to be "turned off" when the player goes in the corridor..

I simply want the PointLight to get active as i fire up the torch.

Thanks for all the help! Smile
(This post was last modified: 09-05-2013, 07:25 PM by gruzz.)
09-05-2013, 07:24 PM
Find
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#2
RE: Script: Activate pointlight when lit torches

Connect the pointlight to the torch. There's a bar under one of the tabs if you click the torch. I believe it's called ConnectLight or something along that line. Simply put the name of the pointlight in there.

"What you think is irrelevant" - A character of our time

A Christmas Hunt
09-05-2013, 07:34 PM
Find
gruzz Offline
Member

Posts: 76
Threads: 24
Joined: Jun 2013
Reputation: 2
#3
RE: Script: Activate pointlight when lit torches

(09-05-2013, 07:34 PM)i3670 Wrote: Connect the pointlight to the torch. There's a bar under one of the tabs if you click the torch. I believe it's called ConnectLight or something along that line. Simply put the name of the pointlight in there.

Inactivated the PointLight for it to get activated when i lit the torch, but it still lights up the area :O
09-05-2013, 07:45 PM
Find
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#4
RE: Script: Activate pointlight when lit torches

Set the color to black on the pointlights. 0, 0, 0, 0.

"What you think is irrelevant" - A character of our time

A Christmas Hunt
09-05-2013, 09:31 PM
Find




Users browsing this thread: 1 Guest(s)