STATE_light_set_save_flag
Calling this function with NO will omit the given light source when saving the world. The default is YES. Example: STATE_light_set_save_flag(my_light, NO);