30.03.2017, 17:32
how to make change death animation or random death animation
switch(random(3))
{
case 0: ApplyAnimation(...);
case 1: ApplyAnimation(...);
...
}
stock randomEx(minnum = cellmin, maxnum = cellmax) return random(maxnum - minnum + 1) + minnum; |
new rspawn = random(4); switch (rspawn) { case 0: ApplyAnimation(...); //here put your animation inf. for the first case of animation case 1: ApplyAnimation(...); //here put your animation inf. for the second case of animation case 2: ApplyAnimation(...); //here put your animation inf. for the 3th case of animation } |