SetWeather routine

TURBU

SetWeather routine

 

Sets the current weather effect.

 

Syntax

 

procedure setWeather(effect: TWeatherEffects; severity: byte);

 

Description

 

This routine sets the state of the weather effect system.  The effect parameter specifies which effect to set, and severity describes how strong the weather should be, from 0 (none) to 10 (strong).  Any value higher than 10 is treated as a 10.  If we_off is passed to effect, then the weather is turned off and severity has no effect.

NOTE: Any weather effect will continue to display on the map, independently of any other changes.  This includes teleport events that change the scene to a different map.

 

Related topics

TWeatherEffects Type

increaseWeather routine

decreaseWeather routine

This help file was created with the free trial version of HelpScribble.