# LaunchLightning

Environment
Weather
5.1 OC
bool
int x X position
int y Y position
int xspeed Horizontal average speed of the lightning bolt.
int xrange Maximum deviation of xspeed.
int yspeed Vertical average speed of the lightning bolt.
int yrange Maximum deviation of yspeed.
bool do_gamma If `true`, the lightning will cause a screen flash for all players.
Creates a bolt of lightning. This will then move from the starting position (iX, iY) at the specified speed and the specified deviation (iXRange, iYRange). Setting the deviation values to 0 would create a straight, linear bolt.
Coordinates are global, even in local calls.
LaunchLightning(Random(LandscapeWidth()), 0, -20, 41, +5, 15);
This call creates normal weather lightning.
LaunchLightning(100, 100, +5, 15, -10, 21);
This will create a bolt such as the one in the magic lightning spell, directed to the right.
LaunchEarthquake
LaunchVolcano
PeterW
2001-11