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 do you blend between different Gun Animations

So I've seen the mechanic for blending animations for a walk cycle. This X - Y Grid that allows you to set up walk / run / sprint animations in all directions and use the pointer to blend between all of those smoothly. But that is specifically a Walk Cycle Animation thing. All of the tutorials i've looked up always cover the Walk Cycle, but how do you blend multiple animations for the hands and gun? Provided they're a one mesh. How would you go about doing the same for a gun model animation set?

Weapon on the side Walking, Weapon on the side Sprinting, Weapon on the side Shooting, Weapon on the side Reloading, Looking down sight Slow Walking, Looking down sight Fast Walking Putting the Gun away, Taking the Gun out

Doesn't seem like I can use the grid to blend between all these animations.

Product Version: UE 4.18
Tags:
more ▼

asked Jan 22 '18 at 05:31 PM in Using UE4

avatar image

TobiasRipper
108 44 48 69

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

1 answer: sort voted first

HI TobiasRipper

To do these actions im pretty sure you would need to create different states in the animation blueprint and use the transitions rule to determine which state should be played, so each different action (reloading, aiming while walking etc) would need to have their own blendspaces.

Firstly, create bools in your character blueprint for the actions you want. Example, if the player has their gun out, set a "WeaponEquipped" (or whatever you wish to call it) boolean to true to use in the animation blueprint, and use this in the event graph of your animation blueprint to get these variables, like so:alt text

Here im getting the varibales from the character blueprint, then dragging off these bools to create a local variable to use in the animation blueprint (i put L_ infront of these so i know which is which)

Then in your graph, make the different states for each action with their own animation or blendstate in each sate, and use the transition rules to decide when each animation should be played alt text

i have only used this breifly and not sure how you would add so many animation, but hopefully this puts you on the right track

animation1.png (130.3 kB)
animation2.png (45.7 kB)
animation2.png (45.7 kB)
more ▼

answered Jan 22 '18 at 06:21 PM

avatar image

Tomazzah
26 3 4 8

(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