Frictional Games Forum (read-only)

Full Version: Script: Activate pointlight when lit torches
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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.
(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
Set the color to black on the pointlights. 0, 0, 0, 0.