A
acidicburn83
Guest
does anyone know how to create a player random attack, in other words - you press attack and it chooses one from freespecial, freespecial2 or freespeacial3 ???
com a2 freespecial
com a2 freespecial2
com a2 freespecial3
int r = rand()%30;
if( r > 20){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW9"));
} else if( r < -20){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW4"));
}
int r = rand()%30;
if( r > 5){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW9"));
} else if( r < -5){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW4"));
}
I dont think random function is that random