Celestia/Celx Scripting/CELX Lua Methods/CEL command setambientlight

setambientlight
setambientlight { brightness   } 

Equivalent to the set { name "AmbientLightLevel" value  } command. Set brightness level of Ambient Light to the specified .

CELX equivalent:

Based on the celestia:setambient method.


 * Set the level of ambient light. The given  is the new level of ambient light and must be between 0 and 1.

celestia:setambient()

Example: Set the brightness level of Ambient Light to 0.15.

CEL:

set { name "AmbientLightLevel" value 0.15 }

-- OR --

setambientlight { brightness 0.15 }

CELX:

celestia::setambient(0.15)

Back to CEL command index