[REQUEST] Light actuator?

I find it would be easier to have a light actuator, so you can change the intensity without keyframing it. Say for a flashlight or light switch just send a message to the light “light on” and have it set the intensity to 0.7, 1.3, etc I just think it would be easier than keyframing it. Just my idea!

Thanks!

-Ethan

python code

import bge
cont = bge.logic.getCurrentController()
own = cont.owner
own.energy=own[‘Energy’]

property sensor
Energy changed--------python

changing the property energy in the light with logic will set the lamp energy

this works quite well.

Ah, thank you. I still think, however, that it should be an implementation.

Thanks for the code, though. :smiley:

It would be interesting if the property actuator would show a few built-in properties for specific objects. In that case for lights, the energy, specular, distance, diffuse, shadow… could appear in the drop down list, for easy in game access!

That would work, too!