# SpawnActor returns null because actor is "pending kill"

**URL:** <https://forums.unrealengine.com/t/spawnactor-returns-null-because-actor-is-pending-kill/418688>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [March 1, 2018, 3:31pm UTC](https://forums.unrealengine.com/t/spawnactor-returns-null-because-actor-is-pending-kill/418688 "2018-03-01T15:31:01Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Herr\_Edgy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/herr_edgy/32/924115_2.png) [@Herr\_Edgy](https://forums.unrealengine.com/u/Herr_Edgy)\
**Post date:** [March 1, 2018, 4:09pm UTC](https://forums.unrealengine.com/t/spawnactor-returns-null-because-actor-is-pending-kill/418688/4 "2018-03-01T16:09:37Z")

</div>

I found out the reason why. Still thank you to GIGA-Money, as that link is helpful!

The actor does not get spawned because the spawning location was blocked. I intentionally tested a “proper” location, but it seems like the system still didn’t like that one. I now set the Spawn Collision Handling Method to “Always spawn” and it worked properly.

I thought that the bNoFail flag would be responsible to spawn the actor no matter what, turns out it doesn’t.

My log was full because of error messages. When I scrolled up I found the message informing me about the spawn location being blocked.

---

_[View the full topic](https://forums.unrealengine.com/t/spawnactor-returns-null-because-actor-is-pending-kill/418688)._
