summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/Environment.c4d/LargeCrystal.c4d/Script.c
blob: b6789ef6e27ae27acebf53ae4dcb4fc333c39246 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*-- Großer Kristall --*/

#strict 2

protected func Initialize() 
{
 var rand=1;
 if(Random(2) == 1)rand=-1;
 SetObjDrawTransform(1000*rand,0,0,0,1000);
}

protected func Activity()
{
	var cnt;
	cnt=5;
    while(cnt--) CreateParticle("MaterialSpark", GetX(this)-GetX()+Random(13)-6, GetY(this)-GetY()+RandomX(11),0,-1-Random(2),40,0x1f7fff);
}

public func Activate()
{
	return SetAction("Active");
}

func IsDecorativeCrystal() { return true; }