I want to make a fading light on my script, how do i set the light energy with script?
I found out myself, this is how i did it.
var mylight = get_node("../DirectionalLight")
var energy = mylight.get_parameter(3)
It does not have a setter, it seems so you will have use set_parameter( int variable, float value ) with PARAM_ENERGY as first parameter.
set_parameter( int variable, float value )
Everything is in http://docs.godotengine.org/en/stable/classes/class_light.html (just lacks of details...)