NED
Well-known member
Hi,
Can you help me setting this random script.
BB helped me with it few years ago for a rise anim random effect.
Now, I need to use it on pain anims.
I need to know how to evaluate the percentage of possibility to complete the cancel.
Does this setting means it allows 33% chances of cancel?
Thanks
Can you help me setting this random script.
BB helped me with it few years ago for a rise anim random effect.
Now, I need to use it on pain anims.
I need to know how to evaluate the percentage of possibility to complete the cancel.
Code:
anim pain
@script
void self = getlocalvar("self");
if( frame == 0){
int r = rand()%30;
if( r >= 20){
changeentityproperty(self, "animation", openborconstant("ANI_PAIN32"));
}
}
@end_script
Does this setting means it allows 33% chances of cancel?
Thanks