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"

UMG Animation Won't Stop Playing


I'm currently working on a stamina bar system, and I want it to flash red while it's draining. I have got the animation to start playing at the right times, however I can't seem to get it to stop.

I've attached screenshots of my code so you guys can see what I'm doing.

Thanks if you can help me.

alt text

Product Version: UE 4.13
untitled.png (225.4 kB)
more ▼

asked Feb 26 '17 at 12:46 PM in Blueprint Scripting

avatar image

5 1 5 12

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

1 answer: sort voted first

Setup a bool for stamina draining. Have it so when all those "and" statements are true, it sets the stamina draining bool to true. Then make a custom event. In the custom event use a branch to determine if stamina draining is true. Then hook up your animation to the true node and the stop animation to the false node. You'll need to call it every tick to see if its true or not so drag out from your event tick and call the custom event. Hope this helps.

more ▼

answered Feb 26 '17 at 01:46 PM

avatar image

40 8 18 23

(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