ok you need this to set it up (you can change the number of particles):
`Rain Setup
particles = 3000
for i = 10001 to particles+10000
if i = 10001
make object triangle i,0.04,0,0,0,0,0,-0.02,3.5,0
color object 10001, rgb(0,0,255)
endif
if i > 10001 then instance object i,10001
position object i,(rnd(140)-70)/2.0,(rnd(180))/2.0,(rnd(140)-70)/2.0
rotate object i,0,rnd(180),0
pitch object down i,(rnd(30)-15.0)/2.0
next i
And then just call this in your loop:
updaterain:
for i = 10001 to particles+10000
move object down i,rainspeed#
if object position y(i) < camera position y(1)-30
position object i,(rnd(140)-70)/2.0+camera position x(1),object position y(i)+50+rnd(20)+camera position y(1),(rnd(140)-70)/2.0+camera position z(1)
rotate object i,0,mox#,0
pitch object down i,ZS#*50
roll object right i,XS#*50
turn object right i,rnd(360)
pitch object down i,(rnd(30)-15.0)/2.0
endif
if object position x(i) > camera position x(1)+50 then position object i,object position x(i)-100,object position y(i),object position z(i)
if object position x(i) < camera position x(1)-50 then position object i,object position x(i)+100,object position y(i),object position z(i)
if object position z(i) > camera position z(1)+50 then position object i,object position x(i),object position y(i),object position z(i)-100
if object position z(i) < camera position z(1)-50 then position object i,object position x(i),object position y(i),object position z(i)+100
next i
return
You need to set the rainspeed#, and it is configured for camera 1 but you can change that to another camera or object
If you want snow, do the same thing but with small planes, and make them fall slower
Matt
Welcome down to London City where the attitudes bad and the weather is shitty...