Bloodbane
Well-known member
I discovered 2 bugs with build 3849:
1. Modders can't declare multiple spawnscripts now. Previously they are accepted
2. This function:
is broken in build 3849 while it works fine in older build (3805 for instance).
What I mean with broken is this looper function loops certain frames endlessly while it's supposed to loop only couple times (defined by Limit).
1. Modders can't declare multiple spawnscripts now. Previously they are accepted
2. This function:
Code:
void looper(int Frame, int Limit)
{// Loops current animation
void self = getlocalvar("self");
void loop = getlocalvar("Loop" + self);
if(loop==NULL()){ // Localvar empty?
setlocalvar("Loop" + self, 0);
loop = 0;
}
if(loop < Limit){ // loops reach limit?
updateframe(self, Frame); //Change frame
setlocalvar("Loop" + self, loop+1); // Increment number of loops
} else if(loop==Limit){ // loops reach limit?
setlocalvar("Loop" + self, NULL());
}
}
is broken in build 3849 while it works fine in older build (3805 for instance).
What I mean with broken is this looper function loops certain frames endlessly while it's supposed to loop only couple times (defined by Limit).