[Bug] Spawned actor works differently from blueprint

I have a blueprint of a very basic enemy character that runs along ground, turns around if it bumps into anything and jumps if it runs out of platform. If I place blueprint in level, it works fine but when I’m trying to use “SpawnActor” in level blueprint, spawned blueprint just sits there.

I have a trigger that activates enemy once player gets close enough, which works because I get print string when it activates and line traces for turning around/jumping also show up when I have debug draw on so it’s receiving ticks and doing things, just not moving.

How do I troubleshoot a spawned instance when blueprint itself works?

I’ve found a fix to problem. Plugging return value from SpawnActor into a “Spawn Default Controller” works.

I’m not sure if it’s supposed to be like that or not but at least it works now.

1 Like

Hey Jonas,

Thanks for your report! I’ve marked 's answer as Accepted for now as he is correct, but your solution is current way to get your AI working after using SpawnActor in blueprints. I’m talking with some of programmers to see if we can get this workflow made a little more intuitive–I’ll update this thread if we make any updates to this process.

Thanks!

-Steve

Yep Ramas explanation makes sense though it’s code-only and I’ve only used blueprints this far.

Having some sort of tag or just using default controller unless otherwise specified would be helpful. I really have no idea where to plug controller into standard blueprint and otherwise it’s just one extra blueprint node per actor, which adds up once you get to scale of entire levels.

#Characters Must Have Controller

engine default behavior for pawns/characters is to freeze and lose all gravity, to absolutely stop, if they do not have an assigned controller.

So even if you plan to control a Character via other means, it must have some sort of controller or it will not do anything

Here is my thread and discovery process (and pictures!) about this issue:

https://rocket.unrealengine.com/questions/4776/how-to-initialize-movement-on-spawned-character.html

:slight_smile:

Can someone explain why I don’t have access to that forum? I registered and got my account validated already, but it still gives me “you do not have permission to access this page” error.

Possibly an old link to beta forum and no longer used.

Hey wyrdaele,

This is an old, Archived post from our beta users, put here for reference. Links posted here may no longer be valid or may only be valid for beta users. If you’re looking for specific answers, you can feel free to open a new post here on AnswerHub. In this particular case, you may even get a response from beta tester whose information you’re looking for!

Best,