x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to randomly play an animation in a state

I downloaded the Zombie pose pack and i want to set it up so that when the zombie is killed, it will randomly choose between the two death animations. I feel like what im trying to do should be really simple but i cant quite figure it out. Heres a picture of what im trying ![alt text][1]

for some reason he just goes right to the T pose. but if i plug one directly in, it works

![alt text][2]

im guessing that Select node is not what im looking for. Does anybody know how to do this/is this even possible? [1]: /storage/temp/74863-animstate.png [2]: /storage/temp/74864-animstate2.png

Product Version: UE 4.10
Tags:
animstate.png (399.3 kB)
animstate2.png (331.0 kB)
more ▼

asked Jan 18 '16 at 03:25 AM in Using UE4

avatar image

ViceVersa
1k 64 50 98

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

4 answers: sort voted first

alt text

more ▼

answered Mar 14 '17 at 01:24 AM

avatar image

Mr.uno
26 1 2 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I have only done this with flipbooks(2d) but maybe you can try a "switch on int" with the random integer range. Maybe someone else might have a better idea, but this is what I have done in the past.

more ▼

answered Jan 18 '16 at 07:28 AM

avatar image

Darvos
63 4 6 8

avatar image ViceVersa Jan 25 '16 at 01:48 AM

i tried this, the problem is the output needs to be a type animnode (the kind in the shape of the littler person). most of the functions dont output that type so i cant really figure out how to use any of them

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I know this is an old post but I did this and it worked for me. Not sure if this is fully answering the question BUT, I created a bunch of animation Montages based on Death animations. I wanted each death to be unique so I made a variable made it an array and called it Death Montage and set it to Anim Montage. I then added all the death anim montages into the array. I then told it to Get the array and grab a random integer and pumped the get into the Play Anim Montage. Now when I kill a bad guy they die 1 of 6 ways. I hope this help anyone having trouble with this. alt text

more ▼

answered Sep 05 '17 at 02:13 PM

avatar image

NeilLondon
11 1 2

avatar image Mr.uno Sep 06 '17 at 07:01 AM

Even if an old question but still need help with it. Im about to try your idea.

avatar image ShadowOf047 Sep 10 '17 at 03:00 PM

If you are in state mahcine you can use "Blend poses by int " node, and you can add more entery pin if you want more than 2 .

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

There is a "Random Sequence Player" node that you can use inside a state. in the details panel you can pick animations that you want to play.

more ▼

answered Jul 13 '19 at 10:50 AM

avatar image

KazemAkhgary
5 3 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question