}$TreeGrow = 1000;$TreeGrowInc = 1000;$MaxTreeHits = 20;function growTree(%pos){ %x = getWord(%pos,0); %y = getWord(%pos,1); %z = getWord(%pos,2); %pos = %x SPC %y SPC %z; %this = new StaticShape() { position = %pos; rotation = "1 0 0 0"; scale = "0.1 0.1 0.1"; dataBlock = "pineTree"; }; %this.startFade(0, 0, true); %this.hide(true); %this.totalHits = 0; %this.schedule($TreeGrow, "hide", false); %this.schedule($TreeGrow + 100, "startFade", 1000, 0, false); for(%t = 1; %t < 11; %t++) { %this.schedule($TreeGrow + ($TreeGrowInc * %t), "setScale",%t/10 SPC %t/10 SPC %t/10); }}