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"

One character with 15 different animation sets depending on what item they are using?

I have one character, one skeleton and 15 unique items that the character can use. The character's move, crouch, jump, attack and interaction animations are all different based on what item it's using.

I have two questions:

If I were to make individual blend spaces and state machines for all of these animations, they would all have the exact same structure with different sequences plugged in. Is there a way to make one single state machine and treat the animations within it as variables?

If not, how could I cleanly implement this many different states and allow the character to choose one based on their item?

New to UE4 and blueprints, thanks in advance.

Here's a link to what I was trying before posting this: https://blueprintue.com/blueprint/f0bx956q/

Product Version: UE 4.22
Tags:
more ▼

asked Apr 24 '19 at 08:15 PM in Blueprint Scripting

avatar image

emmix
3 1 2

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

1 answer: sort voted first

Is there a way to make one single state machine and treat the animations within it as variables?

Yes, I have done something like this in the past. The trick is a sort-of hidden feature. Drag any animation sequence into your AnimGraph (in a state machine or otherwise) and then on the animation sequence's details panel (right-hand side) you can expose the sequence as a pin. This allows you to feed any sequence into this node. From here you can make an animation sequence variable in your animation blueprint, say one for "attack", then based on the item the player is using you can set the "attack" animation sequence variable appropriately.

Doing so should give you a bit of modularity in your state-machine.

I have attached an image of the expose sequence as pin thing I am talking about.

alt text

sequence-as-pin.jpg (184.0 kB)
more ▼

answered Apr 25 '19 at 04:28 AM

avatar image

mr137
116 1 3 3

avatar image emmix Apr 25 '19 at 05:38 AM

This works great, thanks a bunch. Is there any reason in particular the pins aren't exposed by default? Seems very useful.

avatar image mr137 Apr 25 '19 at 06:00 AM

Not sure, that's one for the engineers at Epic, haha :)

(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