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"

UE4. Cover system help

I have begun creating a cover system inside of UE4. . I use a line trace to check for a physics object when the user presses the cover button, if a object is within range it sets a variable to be true that plays a animation, problem is that when the animation plays the player character no longer collides with the object and instead clips through till the animation is complete. How can i prevent this? I need the animation to run faster/slower depending on distance to object as well as stoping at the point of collision with the cover object. Any help would be greatly appreciated. As seen here: https://www.youtube.com/watch?v=56FbriwRU1o&feature=youtu.be.

My player script: alt text

My anim event graph: alt text alt text

My anim graphs: alt text alt text to transition out of anim, playcoveranim variable is setto false and the transition out checks that playercoveranim is not true.

Product Version: Not Selected
Tags:
more ▼

asked May 08 '15 at 03:53 PM in Blueprint Scripting

avatar image

CallMeMarshal
6 1 2 4

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

1 answer: sort voted first

Is your cover animation using Root motion? If not, set it up. Normal animations only affect your skeletal mesh. It wont animate the collision volume with it causing mesh to clip through blockers. When you enable root motion, the collision volume of your character will also move along with the animation allowing it to stop the character mesh from going through objects Go through this doc https://docs.unrealengine.com/latest/INT/Engine/Animation/RootMotion/index.html

more ▼

answered May 08 '15 at 04:10 PM

avatar image

mindfane
3.4k 154 51 271

avatar image CallMeMarshal May 08 '15 at 04:21 PM

Thank you very much for the swift reply, Helps me out quite a bit.

avatar image CallMeMarshal May 08 '15 at 06:41 PM

Another quck question, This method does work BUT after the montage is done playing the character reverts back to the montage's base pose. How can i get it to hold the final pose of the montage?

(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