- Documentation
- Server functions
- setWorldProperty
Function
setWorldProperty
Stores a named world property of up to three numbers, e.g. a colour or an effect intensity from the list (AmbientColor, LightsOnGround, SpriteBrightness, etc.). The name is case-insensitive.
Syntax
bool setWorldProperty(string property [, float a = 0, float b = 0, float c = 0])Arguments
propertystring- Property name.
afloat, optional = 0- First number.
bfloat, optional = 0- Second number.
cfloat, optional = 0- Third number.
Returns
true on success.
Example
setWorldProperty("AmbientColor", 0.6, 0.5, 0.4)
Notes
State for scripts. The game does not apply these values yet.