Ok, I made a bush script and it works just like a real bush. The one thing I have a problem with is when you carry it off the level. How would I got about having it reset to the level x and y of where it started if it was thrown on a different level?
NPC Code:
// NPC made by Brent
if (created) {
setshape 1,32,32;
this.startx = x;
this.starty = y;
canbecarried;
}
if (wasthrown) {
putleaps 1,x,y;
hidelocal;
dontblock;
sleep 5;
x = this.startx;
y = this.starty;
showlocal;
blockagain;
}
-Brent