I made a quick rain effect. I decided to post the code here.
Code:
var droplets;
string raindropBMP = <raindrop.bmp>;
action rain
{
my.passable = on;
my.transparent = on;
my.alpha = 25;
while(my.z > 0)
{
my.z -= 20 * time;
wait(1);
}
droplets -= 1;
ent_remove(me);
}
function raindrop()
{
var rainVec[3];
while(!player) { wait(1); }
while((player) && (droplets < 400))
{
randomize();
rainVec.x = player.x + random(800) - 400;
rainVec.y = player.y + random(800) - 400;
rainVec.z = player.z + 200;
ent_create(raindropBMP,rainVec,rain);
droplets += 1;
wait(1);
}
}
All you need to do is put this in the script somewhere. The player entity must be followed by the camera in order for this to work properly. I think the nexus might have to be increased (or decrease droplets). And the player pointer has to be replaced by what ever pointer is used by your player.
raindrop(); is called in main()
Enjoy. I'll want credit, but its free for you, commercial or not
Oh, it looks better in run time than in the screenshot