Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Rabagast on December 23, 2015, 02:30:57 AM

Title: Turn off the lights
Post by: Rabagast on December 23, 2015, 02:30:57 AM
Hi!

I have a light switch! And when the Player hits that light switch, the light will turn off in the current room. My question is, do I need to set the light intensity to 0 on all the lights I have in the room? For example if I have 13 lights. Or is it an easer way? For example to use a variable or if it is an Action that do this or something?
Title: Re: Turn off the lights
Post by: fuzzywobs on December 23, 2015, 06:30:31 AM
You could put all the lights into an empty game object and when you want to turn the lights off, just deactivate that game object and all the lights will turn off.
Title: Re: Turn off the lights
Post by: Rabagast on December 23, 2015, 06:38:21 AM
Hi!

Thank you! I will try that! :)