Here is a weather script using the On Tick Command. This script starts the rain and then it ends
if ontick(180) then
skyspeed(100)
farflash
text("Looks like a warm front is moving in")
text("Better grab your rain gear")
rain(100,20)
overcast(100,30)
set(v4,1)
endif
if ontick(360) then
text("The storm is finally passing")
skyspeed(25)
rain(0,40)
overcast(0,40)
set(V4,2)
endif
if eq(v4,1) and random(30) then
farflash
flash
endif
Here's the breakdown:
3 minutes into the game the sky starts moving at its maximum speed, the rain reaches full strength in 20 seconds, and the overcast reaches full strength in 30 seconds. Variable 4 is set and randomly for 30 times, there are flashes and far flashes.
6 minutes into the game the sky speed slows down to 25% and the rain and overcast comes to an end in 40 seconds.
On Tick Command
- Red Dog-PG-
- Squad Member
- Posts: 1005
- Joined: Thu Jan 10, 2013 1:21 pm
On Tick Command
Last edited by Red Dog-PG- on Thu Feb 28, 2019 9:39 am, edited 1 time in total.
Handle every stressful situation like a Dog....if you can't eat, hump it, or play with it, pee on it and walk away
- Windstalker-PG-
- Administrator
- Posts: 1451
- Joined: Sat May 22, 2010 11:04 am
- Country Joe-PG-
- Squad Member
- Posts: 2119
- Joined: Sun May 30, 2010 12:29 pm
- Location: USA