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 change animation speed in Blueprint?

So I have this character who moves around and shoots. I have an animation blueprint set up for him, and I want his shooting animation to change playback speed based on the gun he has. What is the best way to do this?

Product Version: UE 4.21
Tags:
more ▼

asked Apr 21 '19 at 12:18 AM in Blueprint Scripting

avatar image

xGameSlave
11 3 7

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

1 answer: sort voted first

One way to do it is make a float variable in your animation blueprint, let's say, "ShootSpeed". Then in the tick of the animation blueprint you get your player pawn by using the "Try Get Pawn Owner" node, then cast that to your specific player type, then get the type of gun and based on that set your ShootSpeed variable. Then the final step is select your shooting animation node in the animation blueprint and expose it's playrate pin and connect the "ShootSpeed" variable to your newly exposed playrate.

I have attached an image of how to expose the play rate of an animation sequence node below:

alt text

playrate.jpg (209.1 kB)
more ▼

answered Apr 24 '19 at 11:17 AM

avatar image

mr137
106 1 3 3

(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