diff options
Diffstat (limited to 'TemplePushing.c4s/CliffPushing.c4d/Extra.c4d/OGoblet.c4d/EmptyGoblet.c4d/Script.c')
| -rw-r--r-- | TemplePushing.c4s/CliffPushing.c4d/Extra.c4d/OGoblet.c4d/EmptyGoblet.c4d/Script.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/TemplePushing.c4s/CliffPushing.c4d/Extra.c4d/OGoblet.c4d/EmptyGoblet.c4d/Script.c b/TemplePushing.c4s/CliffPushing.c4d/Extra.c4d/OGoblet.c4d/EmptyGoblet.c4d/Script.c new file mode 100644 index 0000000..bdd3eeb --- /dev/null +++ b/TemplePushing.c4s/CliffPushing.c4d/Extra.c4d/OGoblet.c4d/EmptyGoblet.c4d/Script.c @@ -0,0 +1,25 @@ +/*-- Leerer Kelch --*/ + +#strict + +local iFill, iTimer; + +func FillCheck() + { + ++iTimer; + if(!(iTimer%5)) + { + var iX = Sin(GetR(), RandomX(-4,8) ); + var iY = -Cos(GetR(), RandomX(-4,4) ); + if(!Contained()) + CreateParticle("NoGravSpark", iX, iY,0,0,RandomX(25, 55),RGBa(255,255,0,120)); + iTimer=0; + } + if(GetMaterial() == Material("Water")) + { + if((iFill+=ExtractMaterialAmount(0,2, Material("Water"), 6))>=10 ) + ChangeDef(GBLT); + } + } + +public func IsMagicProduct() { return(true); } |
