summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/System.c4g/Ice.c
blob: a0123c38fcb33105e3b4ee7ffb7c80f0db1016c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*--- Make ice chunk create frost wave upon impact ---*/
 
#strict 2
 
#appendto ICE1
 
local hit;
 
protected func Hit()
{
        if (!hit)
        {
                var frostwave = CreateObject(MFWV, 0, 0, NO_OWNER);
                frostwave->SetMaxRadius(60);
                frostwave->Activate(this);
                hit = true;
        }
 
		CastParticles("Snow", 50, 20, 0, 0, 50, 80, RGBa(120,120,255,0), RGBa(90,90,255,127));
		RemoveObject();
}