summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/Environment.c4d/Snow.c4d/Script.c
blob: 31270748da13ac58934e845a346872eb9782d21c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*-- Schnee-Effekt --*/

#strict

protected func Initialize() {
  if(!IsNewgfx()) RemoveObject();
  SetPosition(0,0);
}

func Snowing() {

  PushParticles("Snow2",RandomX(-7,7));
  for(var x; x<4; x++) 
  {
    CreateParticle("Snow2",Random(LandscapeWidth()),0,0,25,RandomX(5,15),0);
    CreateParticle("Snow2",Random(LandscapeWidth()),0,0,21,RandomX(10,20),0);
    CreateParticle("Snow2",Random(LandscapeWidth()),0,0,17,RandomX(15,25),0);
    CreateParticle("Snow2",Random(LandscapeWidth()),0,0,35,RandomX(20,30),0);
  }
}