diff options
| author | Jan <> | 2015-02-02 18:49:15 +0100 |
|---|---|---|
| committer | Jan <_> | 2015-07-10 17:52:21 +0200 |
| commit | de97f8b2898e8fd00c5d6108e2832b7e6cd3668f (patch) | |
| tree | dc8d478aec0b71e0c4dd797e51080335220d02cf /TemplePushing.c4s/Environment.c4d/Snow.c4d/Script.c | |
| parent | ca61c54b9bd69af897e4cc9d4385137fb56fd11a (diff) | |
| download | tempelschubsen-de97f8b2898e8fd00c5d6108e2832b7e6cd3668f.tar.gz tempelschubsen-de97f8b2898e8fd00c5d6108e2832b7e6cd3668f.zip | |
TemplePushingB.c4s
Diffstat (limited to 'TemplePushing.c4s/Environment.c4d/Snow.c4d/Script.c')
| -rw-r--r-- | TemplePushing.c4s/Environment.c4d/Snow.c4d/Script.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/TemplePushing.c4s/Environment.c4d/Snow.c4d/Script.c b/TemplePushing.c4s/Environment.c4d/Snow.c4d/Script.c new file mode 100644 index 0000000..5757711 --- /dev/null +++ b/TemplePushing.c4s/Environment.c4d/Snow.c4d/Script.c @@ -0,0 +1,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(50,80),0); + CreateParticle("Snow2",Random(LandscapeWidth()),0,0,21,RandomX(30,50),0); + CreateParticle("Snow2",Random(LandscapeWidth()),0,0,17,RandomX(10,30),0); + CreateParticle("Snow2",Random(LandscapeWidth()),0,0,35,RandomX(80,100),0); + } +} + |
