Category: Environment
/ Weather
Since engine version: 1.0 OC
SetWind
Description
Temporarily sets the global wind velocity and direction.
Syntax
void SetWind(int strength);
Parameter
- strength:
- Wind velocity from -100 to 100.
Example
#appendto Cannon func ControlLeft() { SetWind(-100); return _inherited(...); } func ControlRight() { SetWind(100); return _inherited(...); }
The wind always blows into the direction the cannon is pushed towards.
See also: GetWind