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"

Spawning Enemy with specific animation

Im trying to spawn enemies on the level when the player gets close enough. Something similar to a zombie crawling out of the ground or a bird swooping down from above. I create the animation in Maya, just pull all the bones under a ground plane and animate it crawling out of the ground, ending with it standing in idle.

The problem I'm having is that when the enemy is spawned, it is in a basic idle pose for a few frames before it plays its special "introduction" animation. I'd like to know how to get it to spawn already in said animation so it doesnt flash on screen when its spawned for a few frames.

Product Version: UE 4.22
more ▼

asked Apr 30 '19 at 09:18 PM in Blueprint Scripting

avatar image

1 1 1 2

avatar image Lardo Deepdelver May 01 '19 at 07:19 AM

Can't think of a nice way to do that, but the ~hacky way for me would be to

  • Hide the SkeletalMesh in the setup

  • In the spawning animation at the beginning, use a notifier to show the SkeletalMesh

that should take care of that.

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

1 answer: sort voted first

This is an easy fix.

Just make sure that if you're using an Anim Blueprint, make sure it's set to NONE. (Yes I meant NONE).

That way, when the unit is spawned it will only play the animation you tell it to. Then when that animation is completed, you set the unit to use the Anim Blueprint.

I believe you drag your unit to the graph, then drag off the blue pin and type "anim instance" you can either get, or set it. That's how you set it.

more ▼

answered May 01 '19 at 08:50 PM

avatar image

Ronnie Olive
136 2 3 2

(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