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"

Reset Player animation

I'm having animation played when player dies but after the teleport the character doesn't reset back to thirespersonanimation BP. The character stays in the position of ending animation. How would I have him reset back original animation on teleport. Help. Thank you!!!

Reset Player Animation node??

Product Version: UE 4.15
Tags:
reset-animation.jpg (193.5 kB)
more ▼

asked Dec 20 '17 at 05:49 PM in Using UE4

avatar image

silverfish1000
122 10 21 26

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

I had a similar problem. A dynamic folding door that I needed to reset when the player restarted the level (I didn't want the hitch of re-loading the level, so I made everything go back to initial state).

I did it by creating a animation with only the door in its ref pose. I applied the animation in the level door and, since physics simulation take over the bones, it didn't affect door interaction. Then, when I want to reset the door, I disable physics in the dynamic bones for two frames and re-enable it.

alt text

Each Delay(0) delays one frame. Only a single frame wouldn't do it. The animation would take over but I think bones velocities were kept, so when I turned physics back on in the next frame, the doors would shake, like something had just moved them. Two frames seem to successfully cancel out physics velocities.

more ▼

answered Dec 24 '18 at 08:31 PM

avatar image

RVillani
1.1k 28 38 90

(comments are locked)
10|2000 characters needed characters left

Hey

I would use the animation BP for that in combination with a custom boolean. After the begin play remove the Play animation node and add there your Custom boolean Set true (make the boolean variable inside of your SidescrollerCharacter). after the delay node Set your boolean to false.

OnBeginOverlap>Set boolean true>delay (6sec)> Set boolean false

Inside the Animation Blueprint in the graph cast to your SideSCrollerCharacter2 (i hink in the example they already have a reference). From there you can get your boolean and promote it to a variable (inside animBP). The only thing then you need to do is to make a transition between the default animation (idle/walk/run blend i guess) and your animation. For that just create a new state for example HeadGesture the transition conditions are: Default>HeadGesture: get (your promoted boolean) HeadGesture>Default: get (your promoted boolean) NOT

Hope that help let me know if it is understandable. ^^ GLHF

more ▼

answered Dec 20 '17 at 08:23 PM

avatar image

lkav
894 8 5 9

avatar image silverfish1000 Dec 20 '17 at 10:34 PM

Yes complicated. There's got to be like cast to sidescroller char. get play character to make him spawn. After teleportation I can destroy actor and then get the node to respawn some how but what node?

avatar image silverfish1000 Dec 20 '17 at 10:36 PM

Also right now it plays animation on begin over lap (trigger box). As soon as it kicks in it plays animation. How ever the character gets stuck on last frame of the animation and doesn't reset.

avatar image silverfish1000 Dec 21 '17 at 04:48 PM

Isn't there one single node that will get the character and re spawn him on desired target. All of the above works great as expected though.

(comments are locked)
10|2000 characters needed characters left
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