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.

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.

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.