From de97f8b2898e8fd00c5d6108e2832b7e6cd3668f Mon Sep 17 00:00:00 2001 From: Jan <> Date: Mon, 2 Feb 2015 18:49:15 +0100 Subject: TemplePushingB.c4s --- TemplePushing.c4s/Environment.c4d/Snow.c4d/Script.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 TemplePushing.c4s/Environment.c4d/Snow.c4d/Script.c (limited to 'TemplePushing.c4s/Environment.c4d/Snow.c4d/Script.c') 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); + } +} + -- cgit v1.2.3-54-g00ecf