death random
#1

how to make change death animation or random death animation
Reply
#2

There's few ways of doing it, I usually do it this way:

PHP код:
switch(random(3))
{
    case 
0ApplyAnimation(...);
    case 
1ApplyAnimation(...);
    ...

Reply
#3

where should put this on any callback

Sorry bad english
Reply
#4

What are you trying to do again? Your explanation seemed clear but your response made me doubt.

What do you want to do? Explain yourself quite better.
Reply
#5

Put this:
Quote:

stock randomEx(minnum = cellmin, maxnum = cellmax) return random(maxnum - minnum + 1) + minnum;

And put this on your OnPlayerDeath callback:
Quote:

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
}

GOOD LUCK .
REP me if i helped you !
Reply
#6

You can't apply an animation on death, but you can make a serversided health system or use Slice's weapon-config include.
Reply
#7

not work
Reply
#8

So how to apply death animation
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)