Gurtag
Active member
hey guys, this is a inline script i got from bloodbane, it is for ramdomize enemies´s attacks, but i think it´s inline nature causes small gamefreezes some times so i wanted to ask if it can be turned in to a function.
@script
if(frame==0){
void vSelf = getlocalvar("self");
int r = rand()%20;
if(r > 0){
changeentityproperty(vSelf, "animation", openborconstant("ANI_runattack"));
}
}
@end_script
@script
if(frame==0){
void vSelf = getlocalvar("self");
int r = rand()%20;
if(r > 0){
changeentityproperty(vSelf, "animation", openborconstant("ANI_runattack"));
}
}
@end_script