How to randomize animations?

So I want the player to have a waiting animations but 3 different kinds of waiting. I want to randomize it so that a random animation will be chosen out of those 3 how to?

1 Like

There is a random behavior that can randomly generate a number in a range of your choosing.
Then you can attach filters on it, so when it equals a certain number it will emit a signal to activate an animation.

Let’s say you have 3 animations. Set the random to 1 being the lowest and 3 being the highest.

1 Like

ok thanks ManiacPumpkin Thanks for the help

1 Like

Ok i did what you said but umm it only showed the wait2 animation why is that??

No, you must filter it and make sure it’s equal to 1 or 2
you could also use a random router

2 Likes

And how do i do that Galactian sir???

1 Like

use a filter

1 Like

the filter is in the Logic and Math section, put the output of the Random block into the “In” input, and set the filter to “equal to (1,2, or 3)”, connect the “pass” output to the animation you want to play

Ok thanks you guys thanks for the help

1 Like

You can also use a router.

2 Likes

wifi router you mean

1 Like

the router behaviour

1 Like

yes, i call the router behavior wifi router

1 Like

then don’t make a comment wasting our time

1 Like