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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How do I make IA enemy to punch my character ?

I have set up AI enemy to chase me when I come closer to him. But I have a problem I don't know how to make him punch me or whatever when he is close to me. I know how to make him to do damage to me but I don't know how to make him play attack animation. I am begginer with this so I will be happy if someone could help me :)

Product Version: UE 4.16
more ▼

asked Jun 29 '17 at 10:56 AM in Using UE4

avatar image

1 1 1

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

1 answer: sort voted first

for that kind of animation it's common to setup a single Animation Montage, wich you can create by right clicking on any standard animation. In order to use it you first have to go in the animation graph and save the locomotion state machine in a saved state (just grab the graph, disconnect it from the final animation pose and plug it into a "new saved cache pose". Then you call the saved chace pose and plug into a "default slot" and finally into the final pose. alt text

After all this you will be able to call a function in the character BP called Play Animation Montage

defaultmovemet.png (546.2 kB)
more ▼

answered Jun 29 '17 at 11:08 AM

avatar image

296 7 6 15

avatar image QEEZYXd Jun 29 '17 at 11:45 AM

okay Thank you so much I will try that :)

(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