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"

Animation Transition Never Happens

I'm working on making the animation blueprint for one of the enemies in my game. I have all the logic for the animation states and transitions setup, but whenever the enemy goes into the attacking state, it NEVER leaves. I've tried many different ways of getting it to leave using the transition, including just setting the rule to true which means that it should always leave, but it doesn't.

I know that it's not leaving and then quickly coming back to the attacking state, because I have set the transition to call an Anim_Notify Event, but it never is. However, if I set the state itself to call the event, it will. So I know the event works, but the animation state never leaves attacking. I'm at a loss as to why. I've included some screenshots of the ABP. Any help would be appreciated.

alt text This is the state machine that I'm currently using. Once it goes to "Attacking", it will NEVER go back to "Idle".

alt text The "Random Sequence Player" node randomly chooses between 3 attacking animations. I thought that this may have been the issue, so I have tried it while it was just playing a single animation directly from an animation asset node and not the Sequence Player, but it had no effect.

alt text I realize that the nodes aren't plugged in here. That was an older attempt to trigger the transition. This is to show you that the transition will never be triggered, even with the most sure-fire way to do it (Which is to set the rule to true).

Product Version: UE 4.17
Tags:
anim-states.png (93.3 kB)
attack-state.png (40.5 kB)
more ▼

asked Nov 06 '17 at 05:59 PM in Using UE4

avatar image

Meganaught
11 1 4 5

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

1 answer: sort voted first

I'm still not sure why this wasn't working properly, but I have a very suitable work around for my purposes. I have added Anim_Notifies on the attack animations themselves that trigger the event. It works perfectly.

This is the documentation that helped me: https://docs.unrealengine.com/latest/INT/Engine/Animation/Sequences/Notifies/

I am going to be marking this as answered since I no longer need help.

more ▼

answered Nov 06 '17 at 10:05 PM

avatar image

Meganaught
11 1 4 5

(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