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"

Animation Stops After Respawn

Hello I'm still fairly new to Unreal Engine's visual scripting system and I can't get past this problem. I have a healthpack that, once run over, despawns and then respawns after a given time. It has an animation I keep in constant (a simple rotation), but whenever the healthpack respawns the animation stops dead, even though it says it's running in the Blueprint editor.

The way I have it set up is two actors; one is the health pickup and the other is the respawn pad. the respawn pad is the actor placed within the world, and it spawns the health pack once the game is initiated. Here are screenshots:

HEALTH PICKUP BLUEPRINT

When the player collides with the pickup, it gives health and despawns: alt text

continued: alt text

When the pickup isn't present, it respawns after a delay: alt text

HEALTH SPAWN BLUEPRINT

When the game starts, the Health Pickup Blueprint is spawned: alt text When the pickup is present, the animation runs. Problem is, it stops when the pickup is respawned. It constantly runs the animation even after the pickup despawns. alt text

I did have the animation logic placed in the Health Pickup Blueprint, but it would run an error whenever the pickup despawned and the animation was trying to run. It would continue to rotate no problem when it respawned, but when I transfered the logic to the Health Spawn Blueprint, it stops entirely. The error log doesn't appear anymore, just this problem that has me confused. Any help would be appreciated!

Product Version: UE 4.18
Tags:
pickupbox-1.jpg (88.7 kB)
pickupbox-11.jpg (78.0 kB)
pickupbox-2.jpg (88.3 kB)
pickupspawn-1.jpg (43.8 kB)
pickupspawn-2.jpg (93.7 kB)
more ▼

asked Jan 26 '18 at 05:15 PM in Blueprint Scripting

avatar image

LukeBenVader1
3 1 2

avatar image ThompsonN13 Jan 28 '18 at 03:58 PM

if your pickup is just rotating you could also use the rotating actor component.

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

1 answer: sort voted first

Hey there, you should do this another way. I'll walk you through it from the screenshots you've sent me:

  1. The first screenshot is fine.

  2. The second screenshot do this: alt text

  3. The third screenshot, delete everything.

  4. The forth screenshot, right click on the Return Value of the spawn and pick promote to variable and name it Health Pack.

  5. The fifth screenshot, replace the get all actor of class and the get 0 with just Get Health Pack and connect there what was once before in get 0.

pickup.png (125.4 kB)
more ▼

answered Jan 28 '18 at 10:35 AM

avatar image

xlar8or
6k 162 129 305

avatar image LukeBenVader1 Jan 28 '18 at 04:53 PM

It works now, and I replaced the RotationAnimation with a simple Rotate Actor Component. Thank you very much!

avatar image xlar8or Jan 28 '18 at 06:30 PM

Good to know :)

(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