This wiki has been moved to https://github.com/SuperTux/wiki into the mediawiki branch.

ScriptingSector

From SuperTux
Revision as of 18:15, 8 May 2008 by Mathnerd314 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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

float get_ambient_light_red()
float get_ambient_light_green()
float get_ambient_light_blue()
Returns the specified channel of the ambient light color.
set_ambient_light(float red, float green, float blue) Sets the sector's ambient light to the specified color.

Constants

None