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"

character animation

Hi i am working in third person template and I have made an AI using the Mixamo character pack. I have it using a pawnsense, so when the AI sees character, he will chase them. I need help working out how to make the mixamo character swing his sword to fight character when close enough. How would i also attach a weapon to my character?

Product Version: UE 4.20
more ▼

asked Apr 21 '19 at 08:19 AM in Blueprint Scripting

avatar image

13 1 1 3

avatar image DonBusso Apr 22 '19 at 10:58 AM

Hello Alyssa.

I was playing about with that very issue the other day and I got a bear to chase me and when in range he does try to hit me. So it's definitely doable, but I am fairly new to the engine so I just have the AI play it's attack animation, with collision sphere attached on to its claws and when sphere collides with my body I receive damage and get pushed back a bit.

If you want to attach a weapon to a character you need to create a new Socket for your bone (eg, hand_r if you are using a default character) and then just attach your weapon using AttachToComponent node.

Here is how I've done it for my AI character as a test. https://www.youtube.com/watch?v=DvJY37tVhms

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

0 answers: sort voted first
Be the first one to answer this question
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