ScriptingSector.md 1.1 KB

Summary

The Sector class provides basic controlling functions for the current sector.

Instances

An instance under sector.settings is available from scripts and the console.

Methods

fade_to_ambient_light(float red, float green, float blue, float fadetime) Fades to specified ambient light color in fadetime seconds.
float get_ambient_red() Returns the specified channel of the ambient light color.
float get_ambient_green()
float get_ambient_blue()
set_ambient_light(float red, float green, float blue) Sets the sector's ambient light to the specified color. set_gravity(float gravity) Sets the sector's gravity. set_music(string filename) Sets the sector's music (full filename relative to the music folder).

Constants

None